如@#$R@#R <html> .... </html> erw223$@#
最后只得到:<html> .... </html>
我用以下代码,但似乎并不可靠:preg_replace("/(.*)(<html.*>.*<\/html>)(.*)/si", "$2", $s)
还得请大能帮忙!
最后只得到:<html> .... </html>
我用以下代码,但似乎并不可靠:preg_replace("/(.*)(<html.*>.*<\/html>)(.*)/si", "$2", $s)
还得请大能帮忙!
$s='@#$R@#R <html> ...aa. </html> erw223$@#';
echo preg_replace("/(.*)(<html.*>.*<\/html>)(.*)/si", "$2", $s);<html> ...aa. </html>