by doxcf434 · 8y ago · 0 comments
I settled on < 100 chars and:
`^[\w\.\+\-]+@[\w\-]+\.[\w\-\.]+$`
We'll see how it goes in production :)
Why not just allow any input and validate the address by attempting to send to it. It's really the only way to tell if its a real address.
What abuse can a person bring on your system by having a 200 char email address? That should be nothing in terms of server load.
It shouldn't be "lets automate this and hope it goes well in production" i.e. the Google approach. It should be "lets use common sense and manage failure in a way that doesn't piss off customers".