Bug #3674: Backreferences need 2 backslashes to work in preg_* functions
| From: | sergio at ing dot puc dot cl | Date: | Wed, 01 Mar 2000 01:56:21 +0000 |
| Subject: | Bug #3674: Backreferences need 2 backslashes to work in preg_* functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16177@lists.php.net to get a copy of this message | ||
From: sergio@ing.puc.cl
Operating system: Redhat Linux 6.0
PHP version: 3.0.15
PHP Bug Type: Documentation problem
Bug description: Backreferences need 2 backslashes to work in preg_* functions
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)