title: Beautiful Soup - Class contains 'a' and not contains 'b'
body: <p>Using <code>bs4</code> I need to find an element with <code>class_=re.compile("viewLicense")</code> but not <code>class_="viewLicenseDetails"</code></p>
  
  <p>Here is the snippet,</p>
  
  <pre><code>&lt;tr class="viewLicense inactive"&gt;&lt;/tr&gt;
  &lt;tr class="viewLicense"&gt;&lt;/tr&gt;
  &lt;tr id="licenseDetails_552738" class="viewLicenseDetails"&lt;/tr&gt;
  </code></pre>
  
  <p>I want the first two tr and not want the last one.</p>
  
  <p>Could someone please help, Thanks</p>