title: Is there a way to match everything except a constant string using Go.Regexp?
body: <p>I have found many similar <a href="https://stackoverflow.com/questions/22251490/regex-that-matches-everything-except-a-constant">questions</a> that do not work with the <a href="https://github.com/google/re2/wiki/Syntax" rel="noreferrer">Go regex syntax</a>.</p>
  
  <p>The string that I am attempting to match against is in the form of <code>anything/anything/somestring</code>. With the pattern <code>\/.*\/.*\/(.*)</code>, I will match <code>somestring</code>, but I am trying to match anything except strings that contain <code>somestring</code>.</p>
  
  <p>Most answers propose using something like <code>\/.*\/.*\/((?!somestring).*)</code>, however in golang regexp I get: <code>? The preceding token is not quantifiable</code>.</p>
  
  <p>For clarification: <code>/test/test/MATCH</code> would produce a match while <code>/test/test/somestring</code> would not. Is this possible with the (limited) Go regex syntax?</p>