svn: /phpdoc/en/trunk/reference/pcre/ pattern.syntax.xml
| From: | Daniel Egeberg | Date: | Wed, 20 Jan 2010 23:51:47 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pcre/ pattern.syntax.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5903@lists.php.net to get a copy of this message | ||
degeberg Wed, 20 Jan 2010 23:51:47 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293793
Log:
Fixed bug #50812 (What exactly does quantifier minimizer mean when it comes to the '?'
meta char?)
Bug: http://bugs.php.net/50812 (Open) What exactly does
quantifier minimizer mean when it comes to the '?' meta char?
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-01-20 23:06:45 UTC (rev 293792)
+++ phpdoc/en/trunk/reference/pcre/pattern.syntax.xml 2010-01-20 23:51:47 UTC (rev 293793)
@@ -143,7 +143,12 @@
</varlistentry>
<varlistentry>
<term><emphasis>?</emphasis></term>
- <listitem><simpara>extends the meaning of (, also 0 or 1 quantifier, also
quantifier minimizer</simpara></listitem>
+ <listitem>
+ <simpara>
+ extends the meaning of (, also 0 or 1 quantifier, also makes greedy
+ quantifiers lazy (see <link
linkend="regexp.reference.repetition">repetition</link>)
+ </simpara>
+ </listitem>
</varlistentry>
<varlistentry>
<term><emphasis>*</emphasis></term>
@@ -1346,7 +1351,7 @@
</para>
<para>
However, if a quantifier is followed by a question mark,
- then it ceases to be greedy, and instead matches the minimum
+ then it becomes lazy, and instead matches the minimum
number of times possible, so the pattern
<literal>/\*.*?\*/</literal>