Hi I would like to remove a img tag with it's src is a url in a content using preg_replace
ex.
$content = "<center><img src="http://example.net/wp-content/uploads/2012/10/cell-degeneration-contn.jpg" alt="" title="cell-degeneration-contn" width="950" height="272" class="alignnone size-full wp-image-100" /></center><h2>A first-in-class approach to stop & reverse </h2>";
so output would be:
$content="<center></center><h2>A first-in-class approach to stop & reverse </h2>";
but best output would be if possible is :
$content="A first-in-class approach to stop & reverse ";