php正则匹配到字符串里面的a标签

$cont preg_replace('/<a href=\"(.*?)\".*?>(.*?)<\/a>/i','',$cont);

posted @ 2017-08-09 23:39  shaoguan  阅读(1300)  评论(0编辑  收藏  举报