Earlier quoted context omitted.
Because it's not obvious. Ask developers to recite the rules for correct email address, and most of them will get it laughably wrong. I blame the standard, which is far more "featureful" than is actually required, but that is the way it is.
It's featureful because it's old . Who routes email to UUCP any more? Just look at the sections of 5322 that are devoted to "Obsolete Syntax".
Stop Validating Email Addresses With Your Complex Regex
101–110 of 211 posts
Re: Stop Validating Email Addresses With Your Complex Regex
#102I don't think this is good advice. From a previous startup we saw a ton of signups like, "john@gmail" and the like. Obviously this person will not get a validation email -- and in all likelihood will not be able to log in to his account when he returns. It's best to catch him when he's entering the information.
Anyone who says "let the confirmation email handle it" clearly only has HN readers as customers. The type silly stuff, then email support to complain they never received the confirmation.
Re: Stop Validating Email Addresses With Your Complex Regex
#103Re: Stop Validating Email Addresses With Your Complex Regex
#104First of all - less incorrect emails sent - less chances to get marked as spam host. Second - it is very easy to catch obvious errors user can do on front end and ask user to correct it. These two is big ones imho
Re: Stop Validating Email Addresses With Your Complex Regex
#105I don't think this is good advice. From a previous startup we saw a ton of signups like, "john@gmail" and the like. Obviously this person will not get a validation email -- and in all likelihood will not be able to log in to his account when he returns. It's best to catch him when he's entering the information.
still there is a difference between validating * @ * . * and trying to check if parenthesis are matched correctly.
Re: Stop Validating Email Addresses With Your Complex Regex
#106So we did lots of multivariate testing, with permutations of regex patterns, MX record validation, sending a confirmation email, client-side only, server-side only, etc.
What we found was that a decent regex pattern (we used \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b, taken from http://www.regular-expressions.info/email.html), with MX record validation and common junk domains blocked (e.g. mailinator.com) produced the largest conversion rates in the follow-up email.
In other words, less validation produced more entries, but they would have been lower quality, which affected our sender reputation and cost more. The confirmation email was awful for conversion. YMMV.
Re: Stop Validating Email Addresses With Your Complex Regex
#107The question is why people are validating the email in the first place. * to ensure it is deliverable? Well, then you better send them an email. * to let people know when they misread the labels and put something that was clearly not an email in the email field? A simple check for an at-sign is usually sufficient. * because some tester opens a ticket saying you can enter an invalid email in the email field? Yeah, tha…
Because most users couldn't type their own email address, or even a properly formatted email address to save their life. "My email address is joe.aol or was it aol.com@joe? Wait joeaol@com?"
Re: Stop Validating Email Addresses With Your Complex Regex
#108I don't think this is good advice. From a previous startup we saw a ton of signups like, "john@gmail" and the like. Obviously this person will not get a validation email -- and in all likelihood will not be able to log in to his account when he returns. It's best to catch him when he's entering the information.
Re: Stop Validating Email Addresses With Your Complex Regex
#109Thus, you must send a confirmation email, with a "click to confirm" link in it.
This keeps your email address list clean; it also validates all the email addresses.
Re: Stop Validating Email Addresses With Your Complex Regex
#110I don't think this is good advice. From a previous startup we saw a ton of signups like, "john@gmail" and the like. Obviously this person will not get a validation email -- and in all likelihood will not be able to log in to his account when he returns. It's best to catch him when he's entering the information.
still there is a difference between validating * @ * . * and trying to check if parenthesis are matched correctly.