求个php正则替换script的代码_百度知道
问题描述: 批量替换$data中所有的script标签和里面的内容后输出$data最佳答案: echo preg_replace("/<script[^>].*?>.*?</script>/si", "", $data);更多关于PHP正则替换文件,有详细代码的问题>>
PHP里的正则表达式替换多HTML代码_百度知道
最佳答案: <?php $str = '<div style="float:left;"><a href=index.php>首页</a> <span>></span>家居</div> </div> <div class="container">';$...更多关于PHP正则