title: Regex match contents between tags where contents have certain text
body: <p>Haystack:</p>
  
  <pre><code>&lt;test 00&gt;
      Don't match
  &lt;/test&gt;
  asdasdasdasdasdasdasda
  asdasdasdasdasdasdasda
  &lt;test 01&gt;
      Don't match
  &lt;/test&gt;
  asdasdasdasdasdasdasda
  asdasdasdasdasdasdasda
  &lt;test 10&gt;
      MATCH ME
  &lt;/test&gt;
  asdasdasdasdasdasdasda
  asdasdasdasdasdasdasda
  &lt;test 11&gt;
      Don't match
  &lt;/test&gt;
  </code></pre>
  
  <hr>
  
  <p>Goal: I'm trying to match</p>
  
  <pre><code>&lt;test 10&gt;
      MATCH ME
  &lt;/test&gt;
  </code></pre>
  
  <hr>
  
  <p>The regex I've ended up using is <code>&lt;test[^&gt;]*?&gt;(.|\n)+?MATCH ME(.|\n)+?&lt;/test&gt;</code>. My problem is that my expression is returning the following</p>
  
  <pre><code>&lt;test 00&gt;
      Don't match
  &lt;/test&gt;
  asdasdasdasdasdasdasda
  asdasdasdasdasdasdasda
  &lt;test 01&gt;
      Don't match
  &lt;/test&gt;
  asdasdasdasdasdasdasda
  asdasdasdasdasdasdasda
  &lt;test 10&gt;
      MATCH ME
  &lt;/test&gt;
  </code></pre>