svn: /phpdoc/en/trunk/reference/pcre/ pattern.syntax.xml
| From: | Pierrick Charron | Date: | Wed, 05 May 2010 20:57:06 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pcre/ pattern.syntax.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6596@lists.php.net to get a copy of this message | ||
pierrick Wed, 05 May 2010 20:57:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299033
Log:
# More understandable explanation of how named subpattern work
Changed paths:
U phpdoc/en/trunk/reference/pcre/pattern.syntax.xml
Modified: phpdoc/en/trunk/reference/pcre/pattern.syntax.xml
===================================================================
--- phpdoc/en/trunk/reference/pcre/pattern.syntax.xml 2010-05-05 20:52:53 UTC (rev 299032)
+++ phpdoc/en/trunk/reference/pcre/pattern.syntax.xml 2010-05-05 20:57:06 UTC (rev 299033)
@@ -1279,10 +1279,10 @@
</para>
<para>
- It is possible to name the subpattern with
- <literal>(?P<name>pattern)</literal> since PHP 4.3.3. Array with
- matches will contain the match indexed by the string alongside the match
- indexed by a number, then.
+ As of PHP 4.3.3, it is possible to name a subpattern using the syntax
+ <literal>(?P<name>pattern)</literal>. This subpattern will then
+ be indexed in the matches array by its normal numeric position and
+ also by name.
</para>
</section>