title: Match all in string but pattern
body: <p>I have a problem where I'm looking to match all in string but a pattern.</p>
  <p>Testcase strings are:</p>
  <pre><code>Something[else]
  Something
  </code></pre>
  <p>I want to match &quot;Something&quot; in both cases, excluding &quot;[else]&quot; where [else] can contain any character e.g. [.*]</p>
  <p><code>.*?(?=\[.*\])</code> would match the first case but not the last. I can't get my head around this.</p>