top | item 8360599 (no title) allegory | 11 years ago I use a slightly more complex variation of that: ^.+@.+\..+$ Works wonders. I think when testing the addresses on a sign up form, we got only 0.5% that we couldn't relay too which was a pretty good hit rate. discuss order hn newest paulnechifor|11 years ago It looks to me like you're neglecting email addresses from <http://ai./>. The 'ai' TLD does have an MX record. allegory|11 years ago Yes; I get told that every time I mention it :-) tragomaskhalos|11 years ago I would suspect that anyone whose email did not match that regex would have such a miserable time generally getting it rejected as invalid left right and centre that they would just cave in and get a simpler one that did. TezzellEnt|11 years ago 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. PinguTS|11 years ago Hope you don't have international customers, because http://äöüß.de is a totally legal domain these days. load replies (1)
paulnechifor|11 years ago It looks to me like you're neglecting email addresses from <http://ai./>. The 'ai' TLD does have an MX record. allegory|11 years ago Yes; I get told that every time I mention it :-)
tragomaskhalos|11 years ago I would suspect that anyone whose email did not match that regex would have such a miserable time generally getting it rejected as invalid left right and centre that they would just cave in and get a simpler one that did.
TezzellEnt|11 years ago 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. PinguTS|11 years ago Hope you don't have international customers, because http://äöüß.de is a totally legal domain these days. load replies (1)
PinguTS|11 years ago Hope you don't have international customers, because http://äöüß.de is a totally legal domain these days. load replies (1)
paulnechifor|11 years ago
allegory|11 years ago
tragomaskhalos|11 years ago
TezzellEnt|11 years ago
PinguTS|11 years ago