Solved

How to add carriage return with find and replace

Posted on 2003-11-19
4
364 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to dynamically set the form action using jQuery.

785 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