note 11227 added to eregi_replace
| From: | Perl at php2 dot chek dot com | Date: | Sun, 11 Feb 2001 14:08:25 +0000 |
| Subject: | note 11227 added to eregi_replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10903@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.
http://www.php.net/manual/en/function.eregi-replace.php