So I have this simple regular expression here:
([a-zA-Z_0-9]+)
However, I want it to not capture it if it equals a specific word, so I found a workaround like this, where it should not contain this:
([a-zA-Z_0-9]+)?\b(?<!this)
Which is fine in retrospect, but if I have the instance where I have a word like this_that, it won't capture it because THIS is inside of that word, however, I want it to capture it unless it equals EXACTLY this and nothing else, make sense?
I did some research and I could not find a NOT operator in regex, just negative look aheads. Anyone have any ideas?
Lots of stuff, as stated above.