note 16495 deleted from function.preg-replace by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 00:19:49 +0000 |
| Subject: | note 16495 deleted from function.preg-replace by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20029@lists.php.net to get a copy of this message | ||
In my PHP 4.04pl1, the backreferences added escape slashes! I.e. if the string referred to by a back
reference contains an apostraphe ('), it gets escaped. I'm using the e operator, BTW. I
had to put a stripslashes() in the replacement code around the backreference
[stripslashes("$2")] to make it behave as I expected.