Example: https://regex101.com/r/nHiyU3/1
CODE:
<div id="content">
<div>
<div class="col-image"></div> <!-- STOPS HERE -->
THIS CONTENT HERE DOES NOT GET CAPTURED
</div>
</div>
REGEX:
/<div id=[\'|"]content[\'|"][^>]*>(.*)<\/div>/sUi
So it stops where I've added the note to say
Any reason why? Have followed other topics on SO but can't get it to grab the whole lot.
So I know how to do it across multiple lines, it's finding the matching tag across multiple lines