note 6047 deleted from function.eregi-replace by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 02:05:58 +0000 |
| Subject: | note 6047 deleted from function.eregi-replace by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20236@lists.php.net to get a copy of this message | ||
Try preg_replace() instead. It's slightly more complex but basically not much different:
preg_replace("/(abc)/i","<B>\\1</b>",$your_str);
(the /i is for case insensitive matches, and the \\1 corresponds to how "(abc)" is in the
first set of parentheses)