Here's an example of RFC 2822 using RegEx in case HackerNews comments filter out some of the symbols: http://bit.ly/g1uFMz
Email address validation: please stop
31–40 of 86 posts
Re: Email address validation: please stop
#32There are two separate issues going on here. One: validating addresses to catch typos. A common example is typing a comma instead of a dot or typing just a username instead of a whole email address. Flagging these errors is a good thing. Two: some developers believe that they can make people enter real email addresses by being very clever about only accepting strings that look like real email addresses. This is stupi…
Re: Email address validation: please stop
#33I always hated having to log in to my email after signing up, so I just create an account and login users without any upfront verification.
My email to the user says I will disable accounts that are not activated in 4 days, but its just a bluff :)
Re: Email address validation: please stop
#34Re: Email address validation: please stop
#35Requiring that the user have an email on file is not as necessary a requirement as a lot of people seem to think. It seems like half the time or more, they just want to spam it anyway.
Re: Email address validation: please stop
#36I like the idea of having validation but when the email doesn't match your pattern, give the user a warning that says "sorry, we don't think this is correct" but allow them to continue if they think it's legit, then have them click a link to validate so an incorrect email serves 0 purpose for them.
Re: Email address validation: please stop
#37I like the idea of having validation but when the email doesn't match your pattern, give the user a warning that says "sorry, we don't think this is correct" but allow them to continue if they think it's legit, then have them click a link to validate so an incorrect email serves 0 purpose for them.
I've been working on a large project that takes this approach for more than just email verification. We try to validate required information of multiple types (emails, accounts, etc.), and provide a "Move forward without validating" option after a third unsuccessful attempt. It's made for quite a better user experience overall, reducing the frustration of users sure they're submitting correct data while "the computer" thinks it's wrong, allowing them to complete the process nonetheless.
Re: Email address validation: please stop
#38Check for an @ sign and possibly a top level domain name (at leasr one dot) and be done with it.
Re: Email address validation: please stop
#39While I agree that some kinds of validation are 'too eager' and annoying, just use a 'legit' e-mail address, ffs. By including super-special characters and whatever extra features GMail or whoever provides, you're just asking for it, sorry. Especially if you're a coder yourself, you can already assume that even if it passes the initial validation, it probably won't be properly stored or escaped when the actual mail i…
How can other people work out what you mean by a 'legit' email address? Are hyphens allowed? What about dots, underscores or numbers? Do any of those count as "super-special characters"? Just like "+", they are all permitted in standards-compliant email addresses, but I have no way of knowing whether they are permitted in addresses that you consider "legit".
Re: Email address validation: please stop
#40I like the idea of having validation but when the email doesn't match your pattern, give the user a warning that says "sorry, we don't think this is correct" but allow them to continue if they think it's legit, then have them click a link to validate so an incorrect email serves 0 purpose for them.
The point here is that "the pattern" used by developers is often grossly incorrect. It'd be better to not even attempt to enforce any pattern.
P.S. Trivially A/B testator at high volumes if your CS infrastructure is capturing sufficient data.