PHP 4.0 Bug #3674 Updated: Backreferences need 2 backslashes to work in preg_* functions
| From: | jimw@php.net | Date: | Sat, 10 Feb 2001 19:39:17 +0000 |
| Subject: | PHP 4.0 Bug #3674 Updated: Backreferences need 2 backslashes to work in preg_* functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46257@lists.php.net to get a copy of this message | ||
ID: 3674
Updated by: jimw
Reported By: sergio@ing.puc.cl
Status: Open
Bug Type: Documentation problem
Assigned To:
Comments:
refiled against 4.0. the sections of pcre.xml lifted from the pcre docs probably needs a caveat
added about how backslashes need to be handled.
Previous Comments:
---------------------------------------------------------------------------
[2000-02-29 20:56:21] sergio@ing.puc.cl
In the documentation it says that the backreferences should be used with one backslash. Well, it
doesn't work. But, in the preg_replace documentation examples that you should use 2
backslashes (and it works in all functions the second way)
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=3674&edit=2