Regular Expressions

wxdqz

New Member
Can anyone tell me the equivalent of this perl code in PHP?

$highlight =~ s/\+/\\+/g;
$doc =~ s[\b($highlight)(?=\"|\,|-|\'|\s|\.|\;|\!|\?)][<b><u>$1</u></b>]igox;


Many Thanks.

Joe B.
Vist <!-- m --><a class="postlink" href="http://www.computercontractor.net">http://www.computercontractor.net</a><!-- m --> - for news.
 
Back
Top