Solved

How to add carriage return with find and replace

Posted on 2003-11-19
4
366 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google adds suggestions 3 77
Problem to Popup 2 97
Fulfillment API php code sample 1 95
Can reCAPTCHA be installed when the FORM is pointing to an external server? 3 61
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…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

734 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