Wednesday 23 December 2015

You can't validate emails. Quit Trying.

About a third of the sites I visit can't or won't accept my email address because their validator assumes assumes something like [a-zA-z0-9]+@[a-zA-z0-9.]+

This is WRONG. Please stop trying to validate emails. Almost everyone implementing an email validator is doing one of the following: - Making something up. Which is wrong. - Finding something someone else wrote. Which is almost certainly wrong. - Implementing from the RFC. Again, you're probably wrong. Mostly because you're probably using the wrong RFC. WRONG.

I give some leeway, maybe, to the code and validator here: http://isemail.info/

It's 52KB and 1200 lines. Is your validator that extensive? Then please, for the love of RFC, stop using it!

tl;dr Don't.



Epic visual tool

Epson 5030UB 2D/3D 1080p 3LCD Projector Submitted December 23, 2015 at 03:08PM by esdraelon http://ift.tt/1O9HE9O

No comments:

Post a Comment