4 ms·
I worry about people putting things like this on the Internet. Any experienced developer knows it's a joke and that there are better ways to validate e-mail add
by Xophmeister 12y ago
I worry about people putting things like this on the Internet. Any experienced developer knows it's a joke and that there are better ways to validate e-mail addresses; but there are plenty of inexperienced -- copy-and-paste -- developers out there. A colleague of mine did something similar, for example: he didn't even know what a regular expression was and I could see, as it was a much simpler pattern than this one, that it would fall quite far from the mark.
- UK-AL 12y agoI think its highlighting the fact that most email regex validation is wrong. Email is a more complex specification than most people realise. I don't even think you can parse it using a regular language(though most regexe engines go beyond this).
- lorddoig 12y agoAs well as traditional verification, I often use a perl script that takes an email as `ARG[1]`, runs this, and exits with `0` or `1` (for easy cross-language usage) because: 1) I don't like the idea of my frontend giving the impression my software takes garbage; 2) poking around my database and seeing obviously wrong, maliciously entered 'emails' makes the OCD in me flare up. Works well for me.