note 74641 added to function.preg-match

From: Date: Sat, 21 Apr 2007 05:48:52 +0000
Subject: note 74641 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-125730@lists.php.net to get a copy of this message
legolas558, Your solution changes the whole meaning of the regular expression. By adding the question mark the regex will only match the first occurrence in the subject. While that may be desirable in some situations in others it may be necessary to make sure the regex will match the whole subject, not just the smallest possible part. If this is the case one can't simply make the expression lazy with the use of a question mark. The point is, your workaround isn't really a workaround as the regexp with the question mark isn't equivalent to the one without. What we need is a fix to this bug. ---- Server IP: 217.160.72.57 Probable Submitter: 130.243.170.144 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- https://master.php.net/note/edit/74641 Del: integrated -- https://master.php.net/note/delete/74641/integrated Del: useless -- https://master.php.net/note/delete/74641/useless Del: bad code -- https://master.php.net/note/delete/74641/bad+code Del: spam -- https://master.php.net/note/delete/74641/spam Del: non-english -- https://master.php.net/note/delete/74641/non-english Del: in docs -- https://master.php.net/note/delete/74641/in+docs Del: other reasons-- https://master.php.net/note/delete/74641 Reject -- https://master.php.net/note/reject/74641 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125730) next »