I know that in Perl regex the concept of a positive kind, i.e. q(?=u) corresponds to q followed by u, without making the u-part of the match. I am looking for something like this in css: I want to match a div , followed by a sibling div.specialClass .
<div>..</div> <div class="specialClass">..</div>
I played with +, but matched div.specialClass , whereas I need the previous div .
css regex
dr jerry
source share