I want to use a regex to find a particular string in my sample, but I want the regex to fail if I first find another string. Let me give an example:
Match find_me
only if we do not first encounter stop_here
. (I don't care if stop_here
occurs later in the sample.)
So, this should match:
blah blah find_me blah stop_here
But this shouldn't:
blah blah stop_here blah find_me
(I'm using the .NET regex engine)