note 24162 deleted from function.ereg by jimw
| From: | jimw@php.net | Date: | Thu, 08 Aug 2002 18:55:31 +0000 |
| Subject: | note 24162 deleted from function.ereg by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34558@lists.php.net to get a copy of this message | ||
use
^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|
(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$
for perfect email validation
i actually found this on an asp site... but the syntax for regular expressions is all the same...
they also have a reg exp tester script....
http://www.regexlib.com
very very very useful