title: regex to match html tags with specific attributes
body: <p>I am trying to match all HTML tags that do not have the attribute "term" or "range"</p>
  
  <p>here is sample HTML format</p>
  
  <pre><code>&lt;span class="inline prewrap strong"&gt;DATE:&lt;/span&gt;    12/01/10
  &lt;span class="inline prewrap strong"&gt;MR:&lt;/span&gt;  1234567
  &lt;span class="inline prewrap strong"&gt;DOB:&lt;/span&gt; 12/01/65
  &lt;span class="inline prewrap strong"&gt;HISTORY OF PRESENT ILLNESS:&lt;/span&gt;  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
  
  &lt;span class="inline prewrap strong"&gt;MEDICATIONS:&lt;/span&gt;  &lt;span term="Advil" range="true"&gt;Advil &lt;/span&gt;and Ibuprofen.
  </code></pre>
  
  <p>My regex is: <code>&lt;(.*?)((?!\bterm\b).)&gt;</code></p>
  
  <p>Unfortunately this matches all the tags...It would be nice if the inner text wouldn't be matched as i need to filter out all the tags except the ones with that specific attribute.</p>