I will take a patch for this.

Massimo

On Aug 7, 1:33 am, Jonathan Lundell <jlund...@pobox.com> wrote:
> On Aug 6, 2009, at 9:32 PM, DenesL wrote:
>
> > IS_EMAIL does not follow the RFC specs for valid email addresses
> > (seehttp://en.wikipedia.org/wiki/E-mail_address)
>
> > even a simple a...@b.com fails
>
> > it is kinda late to work on the regex now, maybe tomorrow.
>
> The RFC is fairly hard to validate. If that's what we really want, I  
> found this one on the web that looks about right:
>
> ^(?!\.)("([^"\r\\]|\\["\r\\])*"|([-a-z0-9!#$%&'*+/=?^_`{|}~]|(?...@[a-
> z0-9][\w\.-]*[a-z0-9]\.[a-z][a-z\.]*[a-z]$
>
> It assumes the case-insensitive flag.
>
> http://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email...
>
> Overkill? Or, what the heck?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to