OK, I read through this thread and it hasn't helped me so far.
I have a regex in TextPad (not sure of its engine) like so:
[[:digit:]]+ \= [[:digit:]]+ \+ [[:digit:]]+
that finds a string such as:
1783635 = 1780296 + 3339
and I want to find everything else. I tried encasing the whole expression with [^ expression ]
as the TextPad manual says to do, with no luck. I also tried [^][ expression ]
, ^( expression )
, and [^]( expression )
, with no luck.
From the thread above, I tried (?! expression )
, again, with no luck.
Thoughts?
It is not really possible to match "the opposite of" with regex. Regular expressions must match to succeed, they cannot not match and still succeed.
Depending on your exact situation (and TextPad's regex capabilities), there might be a way around this limitation.
More detail is necessary to say that for sure, though. Please provide a real-world text sample and describe what you want to do with it.