2 ms·
After writing my comment, I went for a walk and ate some Chipolte and thought a bit more. And thought about JWZ's: Some people, when confronted with a problem,
by brudgers 10y ago
After writing my comment, I went for a walk and ate some Chipolte and thought a bit more. And thought about JWZ's:
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
And now I'd put it like this. It doesn't matter what changes are made to the syntax. It doesn't matter what tools we build. The problem with regex's is that they won't balance parenthesis and not balancing parenthesis is counterintuitive to the ideas of matching and patterns.
Even worse, there is no way to understand why problems like balancing parenthesis are impossible without a mental model based on regex's mathematical underpinnings.
I should probably admit my bias, if I'm in an IDE or a text editor (or even a browser window), the last thing I want to do is reach for a mouse.