PHP remove wrapping DIV

I have this structure

<div class="col">
  <div id="wrap">
    <div class="inner_wrap">
      Content
    </div>
  </div>
</div>

I would like to remove the div with id wrap but keep the contentlike this

<div class="col">
  <div class="inner_wrap">
    Content
  </div>
</div>

I’ve tried a few regular expressions but withour sucess

$content = preg_replace('/<div[^>]+id="[^>]*wrap[^>]*"[^>]*>.*?</div>/i', '', $content);

or

$content = preg_replace('/<div id="wrap">(.+?)</div>', '', $content);