Solved

Using Regex to replace all vbCrLf to <P>

Posted on 2003-12-04
2
812 Views
Last Modified: 2012-08-13
I am new to regular expressions.

I want to produce a Multiline Messagebox to show the user (using vbCrLF), and then write the same message to an .html file.

Using Regular Expressions, is there an easy way to replace all CRLF occurences with <P>?

Dabas
0
Comment
Question by:Dabas
2 Comments
 
LVL 5

Accepted Solution

by:
mccainz2 earned 250 total points
ID: 9879364
regexp not needed

yourtext=replace(yourtext,vbcrlf,"<P>")
0
 
LVL 27

Author Comment

by:Dabas
ID: 9879426
Now why did I not think about that one myself?

Dabas
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

840 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