note 91230 deleted from regexp.reference by danbrown

From: Date: Mon, 01 Jun 2009 13:06:46 +0000
Subject: note 91230 deleted from regexp.reference by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156250@lists.php.net to get a copy of this message
Note Submitter: tasser gyati ---- However, if a quantifier is followed by a question mark, then it ceases to be greedy, and instead matches the minimum number of times possible, so the pattern /\*.*?\*/ does the right thing with the C comments. The meaning of the various quantifiers is not otherwise changed, just the preferred number of matches. The above description never worked for me in php. The only way to match patterns in a non-greedy manner is to use /U switch.

« previous php.notes (#156250) next »