4 ms·
There's plenty of upper case e-mail addresses that won't match that expression.
by subsystem 14y ago
There's plenty of upper case e-mail addresses that won't match that expression.
- aidos 14y agoWell, if you want to be fully compliant you can go for this 6kb monster http://ex-parrot.com/~pdw/Mail-RFC822-Address.html http://ex-parrot.com/~pdw/Mail-RFC822-Address.html
- InclinedPlane 14y ago/i
- subsystem 14y agoThere's characters missing[1] and the tld is too short[2]. And even if that's fixed, we still don't match internationalized addresses or actually validate that the e-mail address exists. You're probably better off with something like... if "@" in email and "." in email.split("@")[1]: send_verification(email) ...but you should probably also check for common misspellings like "gmial.com" etc. [1] http://en.wikipedia.org/wiki/Email_address#Syntax http://en.wikipedia.org/wiki/Email_address#Syntax [2] http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains http://en.wikipedia.org/wiki/List_of_Internet_top-level_doma...