我写的获取网页图片的正则,麻烦看一下为什么不对呢

`
header("Content-Type:text/plant;charset=utf-8");
$result = file_get_contents('https://v.ifeng.com/c/971d405...');
$encode = mb_detect_encoding($result, array("ASCII",'UTF-8',"GB2312","GBK",'BIG5'));
$result = mb_convert_encoding($result,"utf-8", $encode);
$result = preg_replace('/()([\s\S]*?)(]*? [\/]?>)([\s\S]*?)(<\/body>)/is','$2',$result);
die(''.$result);
?>
`

最佳答案

建议先学习一下正则的基础知识