Fixed bug #50812 (What exactly does quantifier minimizer mean when it comes to the '?' meta char?)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293793 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Egeberg 2010-01-20 23:51:47 +00:00
parent 7f98d8474e
commit d661690a96

View file

@ -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>