title: Ignore all text between HTML tag JavaScript Regex
body: <p>I have a regular expression that is running on a string of HTML, but I need to exclude anything that is between a <code>&lt;p&gt;&lt;/p&gt;</code> tag from being able to match with my regex. Is there a way of doing this in my current regex?</p>
  <p>My regex (matches: $, %, decimal, and whole number values in a string): <code>/(?:\$?)(?:\d{1,3}(?:,\d{3})*(?:\%?)|\d+)(?:\.\d+(?:\%?))?/g</code></p>
  <p>Basically, this regex should match with the following.</p>
  <pre><code>&lt;div&gt;$50&lt;/div&gt;
  &lt;p&gt;$40&lt;/p&gt;
  &lt;div&gt;$30&lt;/div&gt;
  
  matches: $50 &amp; $30
  ignores: $40
  </code></pre>