What's a good regex to validate an email address? ;)
| From: | John W. Holmes | Date: | Thu, 16 Oct 2003 04:29:27 +0000 |
| Subject: | What's a good regex to validate an email address? ;) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166271@lists.php.net to get a copy of this message | ||
Heh... I was adding a note to the PHP Manual and I thought it was really funny they had to include this note in the "rules":
(And if you're posting an example of validating email addresses, please don't bother. Your example is almost certainly wrong for some small subset of cases. See this information from O'Reilly Mastering Regular Expressions book for the gory details.)
lol...
The link is http://examples.oreilly.com/regex/readme.html in case anyone is interested...
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com