note 81719 added to function.preg-match
| From: | Paperweight at osu1 dot php dot net | Date: | Tue, 11 Mar 2008 05:38:58 +0000 |
| Subject: | note 81719 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-136922@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 66.207.199.35
Probable Submitter: 24.67.76.62
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/81719
Del: integrated -- https://master.php.net/note/delete/81719/integrated
Del: useless -- https://master.php.net/note/delete/81719/useless
Del: bad code -- https://master.php.net/note/delete/81719/bad+code
Del: spam -- https://master.php.net/note/delete/81719/spam
Del: non-english -- https://master.php.net/note/delete/81719/non-english
Del: in docs -- https://master.php.net/note/delete/81719/in+docs
Del: other reasons-- https://master.php.net/note/delete/81719
Reject -- https://master.php.net/note/reject/81719
Search -- https://master.php.net/manage/user-notes.php