note 94186 added to function.preg-match

From: Date: Wed, 21 Oct 2009 15:50:27 +0000
Subject: note 94186 added to function.preg-match
Groups: php.notes 
Request: Send a blank email to php-notes+get-161944@lists.php.net to get a copy of this message
Addition to my last note: I just posted the regex, but there are missing the delimiters for it. The correct way to check against the regex ist as follows: <? if(preg_match("/^$regex$/", $url)) { return true; } ?> ---- Server IP: 85.214.154.209 Probable Submitter: 78.34.105.149 ---- Manual Page -- http://www.php.net/manual/en/function.preg-match.php Edit -- https://master.php.net/note/edit/94186 Del: integrated -- https://master.php.net/note/delete/94186/integrated Del: useless -- https://master.php.net/note/delete/94186/useless Del: bad code -- https://master.php.net/note/delete/94186/bad+code Del: spam -- https://master.php.net/note/delete/94186/spam Del: non-english -- https://master.php.net/note/delete/94186/non-english Del: in docs -- https://master.php.net/note/delete/94186/in+docs Del: other reasons-- https://master.php.net/note/delete/94186 Reject -- https://master.php.net/note/reject/94186 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161944) next »