note 81719 deleted from function.preg-match by tularis
| From: | tularis@php.net | Date: | Thu, 03 Jul 2008 21:36:31 +0000 |
| Subject: | note 81719 deleted from function.preg-match by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141137@lists.php.net to get a copy of this message | ||
Note Submitter: Paperweight
----
Beat this modern email address matcher...
/^([a-z0-9]([a-z0-9_-]*\.?[a-z0-9])*)(\+[a-z0-9]+)?
@([a-z0-9]([a-z0-9-]*[a-z0-9])*\.)*
([a-z0-9]([a-z0-9-]*[a-z0-9]+)*)\.[a-z]{2,6}$/
(Remove the line-breaks!)
Its only bug is it thinks single-number top-level domains are ok. Can you find any others?