title: regex split on `q` if not a `\q` inside `<>`
body: <p>I'm trying to write a regex that will split on anything between <code>&lt;</code> and <code>&gt;</code> if it doesn't contain a <code>q</code> that isn't a <code>\q</code>. Here's what I mean:</p>
  
  <pre><code>       split           nope             split
           v              v                 v
  test1&lt; test2 &gt; test3 &lt;tesqt4&gt; test5 &lt; tes\qt6&gt;
  </code></pre>
  
  <p>I want to do this without using lookaheads or lookbehinds.</p>
  
  <p>Here's what I have so far but it's still not working <a href="http://regexr.com?345jc" rel="nofollow"><code>^&lt;(?:[^\\][^q]*)*&gt;</code></a></p>