note 94186 deleted from function.preg-match by danbrown
| From: | danbrown@php.net | Date: | Wed, 03 Aug 2011 13:09:24 +0000 |
| Subject: | note 94186 deleted from function.preg-match by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182143@lists.php.net to get a copy of this message | ||
Note Submitter: splattermania at freenet dot de
----
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;
}
?>