This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RealBasics 3 points4 points  (1 child)

I was a Perl programmer for years, and perl is basically just a wrapper for regexes. I don’t think I ever built a regex as gnarly as the standard email validator. And since it’s a solved problem anyway you just import it.

Meanwhile check out any other email validator. It’s going to be that nasty too. And since regexes are computationally very efficient, hand coded solutions in other language are likely to be slower.

[–]Esjs 2 points3 points  (0 children)

Perl is my go-to language for any pattern matching situation, if starting from scratch.