Live data from Hacker News

Stop Validating Email Addresses with Regex (2012)

davidcel.is

1–10 of 228 posts

Re: Stop Validating Email Addresses with Regex (2012)

#2
I appreciate the idea here but generally you set a non perfect regex expression and just roll on with whatever other verification there is (send email). Well I don’t but if you did I don’t see much harm.

I won’t ask people to type the email twice, that’s just annoying.

Re: Stop Validating Email Addresses with Regex (2012)

#3
Can't upvote this enough.

There simply is no need to check the email addr provided by the user. Send the mail, if it bounces, the user has only himself to blame. What if I don't want them to go through the hassle of an activation link? Then I don't bother with an email account in the sign-up process in the first place. If they want a passwd reset method, they can later provide an email in their settings page, if that isn't valid, well, tough luck.

Re: Stop Validating Email Addresses with Regex (2012)

#4

Can't upvote this enough. There simply is no need to check the email addr provided by the user. Send the mail, if it bounces, the user has only himself to blame. What if I don't want them to go through the hassle of an activation link? Then I don't bother with an email account in the sign-up process in the first place. If they want a passwd reset method, they can later provide an email in their settings page, if that…

Bouncing usually requires money

Re: Stop Validating Email Addresses with Regex (2012)

#8

Can't upvote this enough. There simply is no need to check the email addr provided by the user. Send the mail, if it bounces, the user has only himself to blame. What if I don't want them to go through the hassle of an activation link? Then I don't bother with an email account in the sign-up process in the first place. If they want a passwd reset method, they can later provide an email in their settings page, if that…

The most underrated crypto thing that people don't discuss enough, is that i don't need an email account to interact with web3 apps, i just sign in with metamask. if I could do it for every single app around that would be great.

Re: Stop Validating Email Addresses with Regex (2012)

#9
I wish they would just modify the standard to not allow "Look at all these spaces!"@example.com and such. Many email systems already don't accept it (e.g. gmail doesn't, probably others but I didn't test) so the actual practical value is small. There's a whole bunch of stuff in there that no one uses and just makes things harder than they need to be.

I've been programming for 25 years. I've been reading this same article repeated over and over again for 25 years too. Clearly it's not working.

Re: Stop Validating Email Addresses with Regex (2012)

#10
I recently encountered this thing, which I'd never seen before: https://html.spec.whatwg.org/multipage/input.html#valid-e-ma...

The original standard for email addresses seems to be so bad that it's just being scrapped and ignored. I think I'm OK with this.

Post reply on HN