News for hackers. Stuff that matters.
Re:Full email validation regex (RFC 2822) by TezzellEnt on Wednesday September 24, 2014 @08:52AM (#8361132)
That's pretty good. I learned from Rails Tutorial to use this one:

    /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
It's worked for me when I needed to use it.
Re:Full email validation regex (RFC 2822) by PinguTS on Wednesday September 24, 2014 @12:00PM (#8362183)
Hope you don't have international customers, because http://äöüß.de is a totally legal domain these days.
Re:Full email validation regex (RFC 2822) by allegory on Wednesday September 24, 2014 @04:54PM (#8364076)
Very true. My simplified one on the parent comment of that one makes no attempt to involve Unicode or character ranges for precisely that reason!