Solved

How to add carriage return with find and replace

Posted on 2003-11-19
4
363 Views
Last Modified: 2010-04-06
Hi, I don't know where I should be posting this, but I hope this forum can answer my question.
I have a mailing list with about 2000 emails that are separated by commas. The program I'm using seems to require each email be on a separate line. So instead of:

email@email.com, email2@email.com

I want:

email@email.com,
email2@email.com

So I just want to do a find and replace on "," and replace it with ", carriage return".

The text editor also supports regular expressions. Thanks.

0
Comment
Question by:Quarfelburg
  • 3
4 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 9782263
carriage return is vbCrLf  as well as chr(13)
0
 
LVL 35

Accepted Solution

by:
YZlat earned 100 total points
ID: 9782283
Replace(myString, ",", VbCrLf )
0
 
LVL 2

Expert Comment

by:Mikehd
ID: 9782302

Carriage return is also  \r

for html and javascript regualar expressions

M=
0
 
LVL 35

Expert Comment

by:YZlat
ID: 9782359
or use "\n"

strTest=Replace(myString, ",", "\n")
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now