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