RE: [PHP] ereg-replace ... how to catch :'( [crying smiley] ???
| From: | Jay Blanchard | Date: | Wed, 14 Apr 2004 13:45:21 +0000 |
| Subject: | RE: [PHP] ereg-replace ... how to catch :'( [crying smiley] ??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-183313@lists.php.net to get a copy of this message | ||
[snip]
:'(
:'-(
this causes the entire message to disappear:
$text = ereg_replace(':'-?(','<img
src="'.$smiley_path.'/crying.gif"
alt=":'(" width="25" height="15"
align="absmiddle">',$text);
[/snip]
Have you tried any of the other regular expression functions available?