I need to capture several consecutive divs that I can recognize only with their start:
<div class="catched">
something maybe with divs and more
</div>
<div class="catched">
something else
</div>
<div class="catched">
something else
</div>
However if I do preg_match('#<div class="catched">.+?<div class="catched"#i',$html,$match)
it will only capture the first one.
I already did that, I think it's with a non-capturing group but I don't find how to do and I don't remember how I did.