note 14731 added to function.eregi-replace.php

From: Date: Sun, 12 Aug 2001 16:05:55 +0000
Subject: note 14731 added to function.eregi-replace.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16601@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?? http://www.php.net/manual/en/function.eregi-replace.php

« previous php.notes (#16601) next »