note 120194 added to regexp.reference.onlyonce

From: Date: Mon, 21 Nov 2016 14:31:54 +0000
Subject: note 120194 added to regexp.reference.onlyonce
Groups: php.notes 
Request: Send a blank email to php-notes+get-207253@lists.php.net to get a copy of this message
>>>They said that the first pattern will be slower than second one when the subject string >>>does not contain matches. >>>But this is not truth. It is truth. Chances are In your example preg_last_error () ! = 0 in the /(\D+|<\d+>)*[!?]/ case ---- Server IP: 72.52.91.14 Probable Submitter: 62.105.143.42 ---- Manual Page -- http://php.net/manual/en/regexp.reference.onlyonce.php Edit -- https://master.php.net/note/edit/120194 Del: integrated -- https://master.php.net/note/delete/120194/integrated Del: useless -- https://master.php.net/note/delete/120194/useless Del: bad code -- https://master.php.net/note/delete/120194/bad+code Del: spam -- https://master.php.net/note/delete/120194/spam Del: non-english -- https://master.php.net/note/delete/120194/non-english Del: in docs -- https://master.php.net/note/delete/120194/in+docs Del: other reasons-- https://master.php.net/note/delete/120194 Reject -- https://master.php.net/note/reject/120194 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#207253) next »