note 14731 deleted from function.eregi-replace.php by alindeman

From: Date: Sun, 12 Aug 2001 16:46:23 +0000
Subject: note 14731 deleted from function.eregi-replace.php by alindeman
Groups: php.notes 
Request: Send a blank email to php-notes+get-16613@lists.php.net to get a copy of this message
I Have a problem with replacing a ) character. I'm using the following code: $TheMessage = eregi_replace (":(", "<img src=./images/sad.gif>", $TheMessage); It doesn't work i think because of the ( character. Although $TheMessage = eregi_replace (":-)", "<img src=./images/smile.gif>", $TheMessage); works perfectly. Can anyone help me with this??

« previous php.notes (#16613) next »