mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
7f98d8474e
commit
d661690a96
1 changed files with 7 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue