サンプルコードがあります:
$content = '<p><iframe width="640" scrolling="no" height="150" frameborder="1" marginheight="0" marginwidth="0" src="http://test.html"></iframe></p><p>Hello world</p>';
$text = preg_replace('/<p>\s*(<iframe src="http://test.html" .*>*.<\/iframe>)\s*<\/p>/iU', '', $content);
echo $text;
この iframe の結果を削除する修正方法は次のとおりです。<p>Hello world</p>