I want to match all characters except those in a capturing group. Here’s a minimal regex to serve as an example of what I want to achieve:
/(?:(["'])[^1]*1)/g
The obvious issue is that [^1]
doesn’t work like that, it isn’t using the capturing group. I can’t find a way to implement that behavior.