How to remove iframe src in a text?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/11999584/error-when-remove-a-iframe-but-cant-remove-tag-p">Error when remove a iframe but can&#39;t remove tag p</a>  </p>
</blockquote>



<p>I have a sample code:</p>

<pre><code>$content = '&lt;p&gt;&lt;iframe width="640" scrolling="no" height="150" frameborder="1" marginheight="0" marginwidth="0" src="http://test.html"&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;p&gt;Hello world&lt;/p&gt;';
$text = preg_replace('/&lt;p&gt;\s*(&lt;iframe src="http://test.html" .*&gt;*.&lt;\/iframe&gt;)\s*&lt;\/p&gt;/iU', '', $content);
echo $text;
</code></pre>

<p>How to fix to remove this iframe result is: <code>&lt;p&gt;Hello world&lt;/p&gt;</code></p>
