From: | merlyn(at)stonehenge(dot)com (Randal L(dot) Schwartz) |
---|---|
To: | Markus Rebbert <markus(dot)rebbert(at)freenet(dot)de> |
Cc: | Brad Nicholson <bnichols(at)ca(dot)afilias(dot)info>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Email Verfication Regular Expression |
Date: | 2005-09-07 16:01:52 |
Message-ID: | 867jdsyihb.fsf@blue.stonehenge.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>>>>> "Markus" == Markus Rebbert <markus(dot)rebbert(at)freenet(dot)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(at)stonehenge(dot)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(at)stonehenge(dot)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!
From | Date | Subject | |
---|---|---|---|
Next Message | Cristian Prieto | 2005-09-07 16:10:23 | Re: Email Verfication Regular Expression |
Previous Message | Douglas McNaught | 2005-09-07 15:44:09 | Re: Email Verfication Regular Expression |