Re:Stop avoiding regular expressions damn it
by bradt on Sunday May 12, 2013 @10:00AM
(#5694230)
Thanks for clarifying. I guess my point was that if you're just matching one email address in a form submission for example, is performance significant?
[ Parent
| on HN ]
No, a few µs vs a few ns when processing your web form won't be significant. Don't shy away from regular expressions, but be aware of their performance and readability impact.
The problem is when developers that don't know any better build parsers with regular expressions. That's almost always a bad idea.