Help with regex match and replace

tsteward

Well-Known Member
Licensed User
Longtime User
Would anyone be able to knock up a quick routine so I can learn how to implement Regex controls.

I wish to search a string to find all occurrences of "*" some text and "*"
Then replace it with "<b>" the text "</b>"

Playing around with a regex builder I have come up with this code to find the matches:
\*([^\*]+)\*

And this regex to replace the text:
<b>$1<\\b>

So my question is how do I implement this into basic 4 ppc.

Thank you
Tony
 
Top