From d661690a9660751f9999a0b2f42c485d5f5829cb Mon Sep 17 00:00:00 2001 From: Daniel Egeberg Date: Wed, 20 Jan 2010 23:51:47 +0000 Subject: [PATCH] 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 --- reference/pcre/pattern.syntax.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reference/pcre/pattern.syntax.xml b/reference/pcre/pattern.syntax.xml index 40daa9164c..fd6fc427fc 100644 --- a/reference/pcre/pattern.syntax.xml +++ b/reference/pcre/pattern.syntax.xml @@ -143,7 +143,12 @@ ? - extends the meaning of (, also 0 or 1 quantifier, also quantifier minimizer + + + extends the meaning of (, also 0 or 1 quantifier, also makes greedy + quantifiers lazy (see repetition) + + * @@ -1346,7 +1351,7 @@ 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 /\*.*?\*/