#42730 [Opn->Csd]: PREG Named Subpattern Syntax Wrong In Docs

From: Date: Mon, 24 Sep 2007 08:08:25 +0000
Subject: #42730 [Opn->Csd]: PREG Named Subpattern Syntax Wrong In Docs
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-33@lists.php.net to get a copy of this message
ID: 42730 Updated by: rquadling@php.net Reported By: php at finalresort dot org -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A 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. Previous Comments: ------------------------------------------------------------------------ [2007-09-21 18:47:10] php at finalresort dot org Description: ------------ In the documentation for PCRE, Pattern Syntax, there is a bug. Searching for "named subpatterns", we find: "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>foo)." The syntax mentioned for named subpatterns is incorrect. The correct syntax is: (?P<name>pattern) Example URL to the documentation: http://us.php.net/manual/en/ reference.pcre.pattern.syntax.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42730&edit=1

« previous php.doc.bugs (#33) next »