3 ms·
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 writ
by joe_the_user 13y ago
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.
- cheald 13y agoWell, 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.