I have the following html code :
<aside id="side">
<a class="active" href="#!"> some text <a>
<a href="#!"> some text <a>
<p> active </p>
</aside>
I am looking for a regex that only finds the 'active' string that is inside <aside id="side"></aside>
and also 'active' should be value of class and something like <p> active </p>
should not be match.
I try to use :
<aside.*[\s\S\n]class="active".*</aside>
but I dont find any match.