常见php正则表达式
摘要:
$str=preg_replace("/\s+/", " ", $str); //过滤多余回车 $str=preg_replace("/<[ ]+/si","<",$str); //过滤<__("<"号后面带空格) $str=preg_replace("/<\!--.*?-->/si","",$st 阅读全文
posted @ 2016-03-29 10:03 李明卫 阅读(103) 评论(0) 推荐(0)
posted @ 2016-03-29 10:03 李明卫 阅读(103) 评论(0) 推荐(0)