Re: strange error
| From: | Pavel Jartsev | Date: | Fri, 12 Jan 2001 13:21:17 +0000 |
| Subject: | Re: strange error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34241@lists.php.net to get a copy of this message | ||
"Leon Mergen, BlazeNetwork" wrote:
>
> ...
>
> $string = eregi_replace(">:(","<img
> src=\"/images/smileys/sm2.gif\" border=\"0\" width=\"15\"
> height=\"15\"",$string);
>
> What is wrong with this? What can I do to fix it?
>
Use this pattern: ">:\("
Point is, you must escape "(" here, 'cause it's metacharacter in regexp.
Hope this helps.
--
Pavel a.k.a. Papi