From: | merlyn(at)stonehenge(dot)com (Randal L(dot) Schwartz) |
---|---|
To: | Andre Lopes <lopes80andre(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgre RAISE NOTICE and PHP |
Date: | 2009-08-18 17:11:10 |
Message-ID: | 86prat2gk1.fsf@blue.stonehenge.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>>>>> "Andre" == Andre Lopes <lopes80andre(at)gmail(dot)com> writes:
Andre> I'm developing a function with some checks, for example... to check if the
Andre> e-mail is valid or not.
How are you hoping to do this? The regex to validate an email
address syntactically is pretty large:
http://ex-parrot.com/~pdw/Mail-RFC822-Address.html
And no, I'm not kidding. If your regex is smaller than that, you aren't
validating email... you're validating something "kinda like email".
For example, <fred&barney(at)stonehenge(dot)com> is a valid email address. (Go
ahead, try it... it has an autoresponder.)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn(at)stonehenge(dot)com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Clark | 2009-08-18 17:39:30 | PQgetlength vs. octet_length() |
Previous Message | Devrim GÜNDÜZ | 2009-08-18 17:04:17 | Re: 2 versions of Postgres on the same machine |