note 11227 rejected and deleted from eregi_replace by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Mon, 12 Feb 2001 00:48:06 +0000 |
| Subject: | note 11227 rejected and deleted from eregi_replace by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10917@lists.php.net to get a copy of this message | ||
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 http://www.computercontractor.net - for news.