note 6963 deleted from ereg by jmoore
| From: | jmoore@php.net | Date: | Wed, 14 Feb 2001 20:14:21 +0000 |
| Subject: | note 6963 deleted from ereg by jmoore | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11079@lists.php.net to get a copy of this message | ||
To do a search for the ] character, try storing it in a variable (e.g. $tmpchar = "]"),
then using the variable name (e.g. $tmpchar) in the pattern. I wasn't able to do $tmpbuffer =
ereg_replace("]([^]])", "\1", $tmpbuffer); ....however, I WAS able to do
$tmpbuffer = ereg_replace("]([^$tmpchar])", "\1", $tmpbuffer);