Validating e mail
Any mistype will result in an invalid email address.[epiphany]Even if the sun shone through my window and I was visited by a particularly savage sneeze (I suffer from Autosomal Dominant Compelling Helio-Ophthalmic Outburst Syndrome*) and I typed out #! ^_`|[email protected] mistake, I would still pass the most thorough email ‘validation’ techniques. ^_`|[email protected] she said she gets super pissed off when told that her email address isn’t valid. For example hitting the neighbouring ‘h’ key instead of ‘g’.
Daryls tend to poke at the keys with only their index fingers like they’re afraid each key will burn them.And since it’s more likely that the shift key would be down only for the letters on either side of the @ symbol, and ‘l’ on either side of the @ is considered particularly dangerous. It goes without saying that I’ve gone to a similar level of effort to account for soft keyboards.The above is all for a single key, but if I mistype a second key, it is possible that I turn an invalid email address back into a valid one (e.g. Remember too that if I mistype the @ symbol, the error will be caught by step one above where I actually check for the existence of an @ as a proxy for a user’s to enter an email address.I'm tired of being told my e-mail address of "foo [email protected]" is invalid.The best option is to ask the user to type their e-mail in twice and if you MUST use a regex checker, then tell the user that their e-mail address does not appear to be valid and ask if they are sure they typed it right.