Why are regular expressions so controversial? [closed]

I don’t think people object to regular expressions because they’re slow, but rather because they’re hard to read and write, as well as tricky to get right. While there are some situations where regular expressions provide an effective, compact solution to the problem, they are sometimes shoehorned into situations where it’s better to use an easy-to-read, maintainable section of code instead.

Leave a Comment