[正则表达式] PHP 中使用正则表达式收集(2016/01/08 - )
// 1. 过滤字符串中src 属性为空的img 标签
$filterBack = preg_replace("/<img[^<>]*src\=[\'\"][\'\"][^<>]*>/" , "" , $str);
// 。。。。
posted on 2016-01-08 17:15 smelikecat 阅读(194) 评论(0) 收藏 举报
// 1. 过滤字符串中src 属性为空的img 标签
$filterBack = preg_replace("/<img[^<>]*src\=[\'\"][\'\"][^<>]*>/" , "" , $str);
// 。。。。
posted on 2016-01-08 17:15 smelikecat 阅读(194) 评论(0) 收藏 举报