note 27422 added to pcre.pattern.syntax
| From: | resler at multidatasoftware dot cz | Date: | Thu, 05 Dec 2002 10:22:18 +0000 |
| Subject: | note 27422 added to pcre.pattern.syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40374@lists.php.net to get a copy of this message | ||
Maybe it was my missunderstanding, but I could not make back reference work on my PHP
4.2.3/Win32/IIS5. Neither below used example:
((?i)rah)\s+\1
worked for me. After hours of hopeless debugging I tried to add one more backslash to back
reference:
((?i)rah)\s+\\1
- at the moment it started to work:-)
Hope this will help someone:-)
--
http://www.php.net/manual/en/pcre.pattern.syntax.php
http://master.php.net/manage/user-notes.php?action=edit+27422
http://master.php.net/manage/user-notes.php?action=delete+27422
http://master.php.net/manage/user-notes.php?action=reject+27422