Development quotes of the week - regular expression edition
Development quotes of the week - regular expression edition
Posted Feb 17, 2022 2:30 UTC (Thu) by NYKevin (subscriber, #129325)Parent article: Development quotes of the week - regular expression edition
I always find these discussions a bit bizarre. At Google, we happily use RE2[1] for ~everything, and while it's not literally the fastest engine in the world, performance is quite acceptable and we basically don't have problems with exponential blowup at all. The only downside is that you can't use lookaround assertions, which is a bit of a problem if, say, you're trying to build a parser that operates on whole lines of input, but the correct solution to that problem is "lex, then parse," not "write a crazy regex that matches the exact combination of keywords and syntax that you wanted to match."
