?
Solved

Using Regex to replace all vbCrLf to <P>

Posted on 2003-12-04
2
Medium Priority
?
818 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 1000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

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