There is for example a structure
<div> text0 <div class="sidebar menu" id="someID"> <div class="warning_block"> <div id="lolID"> <div>Text1</div> <div>Text2</div> </div> <div id="adsfwe"> <a href="bla bla">Hello</a> </div> </div> </div> text4 </div> You need to find a div block that has a class or id with different values, such as sidebar, menu, navigation, and which may contain divs nested in it. Tried to make a regular, but it only finds up to the first or second (depending on the code, xs why) closing the div tag
<div .*?((class)|(id))="((sidebar.*?)|(menu))".*?>(<div.*?>(?1)*?</div>|.)*?</div> Please help to make the right expression, or somehow correct it
divelements in which there is aclassorid? - Yuri