vrana Mon Jun 13 12:30:44 2005 EDT
Modified files: /phpdoc/en/reference/pcre pattern.syntax.xml Log: Version information http://cvs.php.net/diff.php/phpdoc/en/reference/pcre/pattern.syntax.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/reference/pcre/pattern.syntax.xml diff -u phpdoc/en/reference/pcre/pattern.syntax.xml:1.7 phpdoc/en/reference/pcre/pattern.syntax.xml:1.8 --- phpdoc/en/reference/pcre/pattern.syntax.xml:1.7 Mon Jun 13 12:26:27 2005 +++ phpdoc/en/reference/pcre/pattern.syntax.xml Mon Jun 13 12:30:42 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 --> <refentry id="reference.pcre.pattern.syntax"> <refnamediv> @@ -578,7 +578,7 @@ <para> <literal>\Q</literal> and <literal>\E</literal> can be used to ignore - regexp metacharacters in the pattern. For example: + regexp metacharacters in the pattern since PHP 4.3.3. For example: <literal>\w+\Q.$.\E$</literal> will match one or more word characters, followed by literals <literal>.$.</literal> and anchored at the end of the string. @@ -936,7 +936,7 @@ <para> It is possible to name the subpattern with - <literal>(?P<name>pattern)</literal>. Array with matches will + <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. </para> @@ -1078,7 +1078,7 @@ as many characters as possible and don't return to match the rest of the pattern. Thus <literal>.*abc</literal> matches "aabc" but <literal>.*+abc</literal> doesn't because <literal>.*+</literal> eats the - whole string. Possessive quantifiers can be used to speed up processing. + whole string. Possessive quantifiers can be used to speed up processing since PHP 4.3.3. </para> <para> When a parenthesized subpattern is quantified with a minimum @@ -1581,7 +1581,7 @@ </para> <para> - <literal>(?1)</literal>, <literal>(?2)</literal> and so on can be used + Since PHP 4.3.3, <literal>(?1)</literal>, <literal>(?2)</literal> and so on can be used for recursive subpatterns too. It is also possible to use named subpatterns: <literal>(?P>foo)</literal>. </para>