#50812 [Opn->Csd]: What exactly does quantifier minimizer mean when it comes to the '?' meta char?
| From: | degeberg@php.net | Date: | Wed, 20 Jan 2010 23:52:45 +0000 |
| Subject: | #50812 [Opn->Csd]: What exactly does quantifier minimizer mean when it comes to the '?' meta char? | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3764@lists.php.net to get a copy of this message | ||
ID: 50812
Updated by: degeberg@php.net
Reported By: mdepuy at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
It simply means that it makes quantifiers ungreedy/lazy (it "minimizes"
the number of characters matched). I've changed the wording in the
manual.
Previous Comments:
------------------------------------------------------------------------
[2010-01-20 23:51:48] svn@php.net
Automatic comment from SVN on behalf of degeberg
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?)
------------------------------------------------------------------------
[2010-01-20 23:40:22] mdepuy at gmail dot com
Description:
------------
On the meta character description page for PCRE
(http://php.net/manual/en/regexp.reference.meta.php), it notes that the
'?' character is also 'also quantifier minimizer'. Can anyone elaborate
on exactly what this means?
Reproduce code:
---------------
---
From manual page: regexp.reference.meta
---
http://php.net/manual/en/regexp.reference.meta.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50812&edit=1