News for hackers. Stuff that matters.
Re:Formly: the form glamorizer for jQuery by gmac on Wednesday June 01, 2011 @08:29AM (#2606964)
This has been discussed to death all over the place, but I think the take home is not to be too clever rather than not to use regexes. I tend to look for 'something at something dot something':

    .+@.+\..+
I believe this allows all valid addresses (as well as lots of invalid ones, obviously). But I'm sure someone will let us know if not. :)
Re:Formly: the form glamorizer for jQuery by ifzen on Wednesday June 01, 2011 @09:51AM (#2607233)
If you REALLY need to validate en email address:

http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html

but again, only if you REALLY, REALLY , REALLY want to.

Re:Formly: the form glamorizer for jQuery by pspeter3 on Wednesday June 01, 2011 @11:33AM (#2607709)
That's ridiculous and awesome. I'm glad regular expressions exist so we can make garbage/magic like that
Re:Formly: the form glamorizer for jQuery by pavel_lishin on Wednesday June 01, 2011 @05:50PM (#2609518)
For a second, I thought it was a perl script.
Re:Formly: the form glamorizer for jQuery by mquander on Wednesday June 01, 2011 @09:49AM (#2607225)
Obvious counterexample: me@localhost. (Not that this is a useful counterexample in the context of a form submission.)
Re:Formly: the form glamorizer for jQuery by lpolovets on Wednesday June 01, 2011 @11:38AM (#2607743)
http://fightingforalostcause.net/misc/2006/compare-email-reg... is a good site that has a number of email regex variants and how well they do on various email address formats.