Favorite Email validation routine?
| From: | Peter Janett | Date: | Mon, 13 Jan 2003 05:21:55 +0000 |
| Subject: | Favorite Email validation routine? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131390@lists.php.net to get a copy of this message | ||
I'm looking for everyone's favorite email syntax validation routine. Code
that takes an email address and does regex on it to determine if it's
formatted correctly.
I know there are some on phpclasses.org that actually check the mx record
and server of the domain, but I'm just looking for a good, clean and fast
email address syntax check.
So, what is your favorite bit of code to do that?
Thanks,
Peter Janett