Solved

How to add carriage return with find and replace

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to dynamically set the form action using jQuery.

747 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

13 Experts available now in Live!

Get 1:1 Help Now