3 ms·
I wish the not operator allowed for sub-expressions instead of just character classes. It'll probably make it slower, but it would remove lots of unreadable con
by bane 12y ago
I wish the not operator allowed for sub-expressions instead of just character classes. It'll probably make it slower, but it would remove lots of unreadable convolutions people have to go through.
- ori_b 12y agoThere are some regex implementations that allow it, but it's a very confusing feature. Remember that '' is not 'a'. Arbitrary expressions can have arbitrary length, so excluding an expression simply will match it, fail the match, and backtrack to the next option.