I want to change this:
<div>
<div>
<div id="myList">
<table><tr><td></td></tr></table>
</div>
</div>
</div>
Into this:
<table><tr><td></td></tr></table>
What would the preg_replace() be? I have tried the following but to no avail:
$result = preg_replace('#<div(.*?)(?! id="myList")>(.*?)</div>#is', '', $result);