#43575 [Opn->Csd]: PCRE Pattern Syntax - Recursion
| From: | felipe@php.net | Date: | Wed, 12 Dec 2007 10:14:15 +0000 |
| Subject: | #43575 [Opn->Csd]: PCRE Pattern Syntax - Recursion | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-345@lists.php.net to get a copy of this message | ||
ID: 43575
Updated by: felipe@php.net
Reported By: josephk at etelos dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
* (?P>name)
This already was fixed.
Previous Comments:
------------------------------------------------------------------------
[2007-12-12 07:45:55] josephk at etelos dot com
Description:
------------
The documentation for referencing a named pattern for recursion is
incorrect.
From the documentation at
http://us.php.net/manual/en/reference.pcre.pattern.syntax.php:
----
Since PHP 4.3.3, (?1), (?2) and so on can be used for recursive
subpatterns too. It is also possible to use named subpatterns:
(?P<name>foo).
----
Subpatterns are referenced for recursion as (P?>name), not
(?P<name>foo).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43575&edit=1