Re: Regex validation
| From: | ceo at l-i-e dot com | Date: | Wed, 29 Oct 2008 13:36:44 +0000 |
| Subject: | Re: Regex validation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-282578@lists.php.net to get a copy of this message | ||
When it comes to email validation, I would recommend using the IMAP function which will be both fast
and correct:
http://us.php.net/manual/en/function.imap-rfc822-parse-adrlist.php
Otherwise, it's guaranteed that you are having at least some false positives, and probably some
false negatives.