Re: Regex for email validation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Waterson wrote:

> There is no silver bullet regex to validate all RFC compliant email
> address. Many have tried, but they all fail at some point. The best
> you can do is cater to most _sane_ addresses.
> 

Exactly - the regex is a quick/cheap sanity check, nothing more.  To go
all the way, you could try doing an SMTP VRFY against the MX for the
domain, but it's really taking it a bit too far.


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux