title: Regex for Finding classes in HTML files
body: <p>I have a bunch of HTML files I need to search to find where a class name is used in the application.</p>
  
  <p>Ex1: should match both of these:  </p>
  
  <pre><code>&lt;div class="something else field"&gt;Foo&lt;/div&gt;
  &lt;span class="field"&gt;Bar&lt;/span&gt;
  </code></pre>
  
  <p>Ex2: should not match</p>
  
  <pre><code>&lt;div class="baseball-field baz"&gt;Baz&lt;/div&gt;
  </code></pre>
  
  <p>I need a pattern to find a class name in my files</p>
  
  <p>What I've tried is:
  <code>/class(?=field)/</code></p>
  
  <p>But this doesn't work, I'm not sure how to account for possible other characters in the search.</p>
  
  <p>Update:</p>
  
  <p>I tried: <code>class.*(?=field)</code>, that works for Ex1 but not 2</p>