>>>>> "Markus" == Markus Rebbert <markus.rebbert@freenet.de> writes:
Markus> Am Mittwoch, den 07.09.2005, 11:17 -0400 schrieb Brad Nicholson:
>> Does anybody have regular expression handy to verfiy email addresses?
Markus> ^([a-zA-Z0-9._-]+)\@(([a-zA-Z0-9-]+[.]?){1,}[a-zA-Z0-9-]*+\.){1,}[a-zA-Z]{2,4}$
Markus> but i don't think, it's really complete.
Absolutely not. It rejects <fred&barney@stonehenge.com> which is a perfectly
valid email address. (Try it, you'll get my autoresponder.)
Google for "RFC 822" and "RFC 2822" to see the *real* rules. An
actual regex for an email address is rather large.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!