title: REGEX to catch a specific tag
body: <p>I am trying to catch a series of tags with regex (for use in Atom on Mac):</p>
  
  <pre><code>&lt;sup id="cite_ref-23" class="reference"&gt;[23]&lt;/sup&gt;
  </code></pre>
  
  <p>So far I mustered this:</p>
  
  <pre><code>&lt;sup.id="cite_ref-\[\d{1,2}\]".class="reference"&gt;\[\d{1,2}\]&lt;/sup&gt;
  </code></pre>
  
  <p>I also tried something in the line of:</p>
  
  <pre><code>&lt;sup.id\=\"\=.*(\d{1,2}\])&lt;/sup&gt;
  </code></pre>
  
  <p>And this catches all of the stuff, but it doesn't <em>stop</em> on first iteration, but keeps on moving:</p>
  
  <pre><code>&lt;sup.*&gt;(\d{1,2}\])&lt;/sup&gt;
  </code></pre>
  
  <p>But it doesn't work. What am I doing wrong?</p>