>>>>> "Markus" == Markus Rebbert <[EMAIL PROTECTED]> 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&[EMAIL PROTECTED]> 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!

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to