The string that I am attempting to match against is in the form of
anything/anything/somestring. With the pattern
\/.*\/.*\/(.*), I will match
somestring, but I am trying to match anything except strings that contain
Most answers propose using something like
\/.*\/.*\/((?!somestring).*), however in golang regexp I get:
? The preceding token is not quantifiable.
/test/test/MATCH would produce a match while
/test/test/somestring would not. Is this possible with the (limited) Go regex syntax?