3 ms·
> just looked for unescaped paren groups Don't forget non-matching groups! Which brings up my point yet again - everyone is pretending this is a dead-simple p
by thedufer 12y ago
> just looked for unescaped paren groups
Don't forget non-matching groups! Which brings up my point yet again - everyone is pretending this is a dead-simple problem to solve, but all of the proposed solutions are buggy. Not really an option for such a widely-used library.
I'm not claiming it's impossible. I'm claiming it's more difficult than anyone is willing to admit.
- boblauer 12y agoCounting capturing groups is a solved problem - http://stackoverflow.com/questions/16046620/regex-to-count-the-number-of-capturing-groups-in-a-regex http://stackoverflow.com/questions/16046620/regex-to-count-t...