How to write a preg_match_all for regular season so as not to cut the closing div?

How to write the regular season with a check that if there is a nested div that noise opening and closing.
$content = '<div class="zzz">wwwww<div>zzz</div>yyy<div>qqqq</div>ppp</div>';
$pattern = "|
(.+?)<\/div>|"; $text = preg_match_all($pattern, $content, $return); echo $return[1][0];
Here is the clip wrong - how to count divas or couples?
June 3rd 19 at 20:25
0 answer

Find more questions by tags Regular expressions