Re:I don't know Regex
by joe_the_user on Tuesday September 03, 2013 @08:30PM
(#6324819)
At that rate, I can't see any good reason to use regexes for email ever.
If you know context-free language, recursive-descent parsers are fairly simple to write and maintain without any special tools.
Well, if you want a spec-compliant email validator, then yeah, you probably want an actual parser. Most people are happy enough with a good-enough pattern match, though, which is substantially less code.
If you are having severe problems with a regex, the issue might be that you need to use an actual parser rather than a simple pattern matcher.