Stop Validating Email Addresses With Your Complex Regexes
1–10 of 25 posts
Re: Stop Validating Email Addresses With Your Complex Regexes
#2Well the link in the previous post had a trailing slash.
Re: Stop Validating Email Addresses With Your Complex Regexes
#3Re: Stop Validating Email Addresses With Your Complex Regexes
#4Re: Stop Validating Email Addresses With Your Complex Regexes
#5There's got to be a bug because this was on the front page 6 days ago: http://news.ycombinator.com/item?id=4486108 Well the link in the previous post had a trailing slash.
Re: Stop Validating Email Addresses With Your Complex Regexes
#6Re: Stop Validating Email Addresses With Your Complex Regexes
#7There's got to be a bug because this was on the front page 6 days ago: http://news.ycombinator.com/item?id=4486108 Well the link in the previous post had a trailing slash.
Re: Stop Validating Email Addresses With Your Complex Regexes
#8Re: Stop Validating Email Addresses With Your Complex Regexes
#9Be careful about taking that "it’ll get bounced" attitude too far though. The last time I did so I forgot to trim the email addresses and didn't lowercase them. Failing to trim will probably result in the email going through, but then might cause problems later on when you try to match their login ID to what they enter the next time.
A similar issue arises for case. Email addresses are supposed to be case sensitive but providers don't seem to take advantage of it in practice. Again, the case a user types varies from time to time (I assumed nobody used upper case... it seems silly). And if you switch to case insensitive login IDs down the line, you may have to deal with duplicate accounts (same email but different case).