[dev] Re: [cvs] commit: horde/lib Form.php
Chuck Hagenbuch
chuck at horde.org
Tue Feb 4 11:07:43 PST 2003
Quoting "Michael J. Pawlowsky" <mikejp at videotron.ca>:
> if((preg_match('/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/', $email)) ||
> (preg_match('/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/',
> $email)))
No offense, but I kinda doubt that correctly accepts/rejects email
addresses. The best official regex for it is several pages long.
-chuck
--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*
More information about the dev
mailing list