9 ms·
I'm always a bit wary of posts that tell me to "Stop doing X". I'm also pretty comfortable with regular expressions. They take you outside of the procedural com
by cleaver 13y ago
I'm always a bit wary of posts that tell me to "Stop doing X". I'm also pretty comfortable with regular expressions. They take you outside of the procedural comfort zone, but are a valuable tool that will pay off to learn.
Still, it's worth a shot trying to create a tool like this. What I don't get is how they would handle subexpressions.
- eru 13y agoWith parentheses?
- stphnclysmth 13y agoLooking at the wiki, I don't think it does handle them. I reckon that if jehna when to the trouble of making this, he knows of at least one use case, even if it's his own. I appreciate that he's shared his work. That said, from my own experience, by the time a regular expression becomes difficult for me to parse, there are subexpressions, negative lookbehinds, and other less comprehensible regex features that this library doesn't seem to support.