Search Postgresql Archives

Re: Email Verfication Regular Expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "Markus" == Markus Rebbert <markus.rebbert@xxxxxxxxxx> 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@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx> <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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux