[imp] Validate Email Address

Chuck Hagenbuch chuck at horde.org
Tue May 25 19:53:12 PDT 2004


Quoting Richard Carpenter <rcarpenter at brandxnet.com>:

> I thought about checking against this regular expression
> /^([a-zA-Z0-9_\.\-])(\@)(([a-zA-Z0-9\-])(\.)([a-zA-Z0-9]{2,4})$/

Don't. The shortest known regular expression that will *correctly* validate an
email address is multiple pages long.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez


More information about the imp mailing list