$cont = preg_replace(‘/<a href=\"(.*?)\".*?>(.*?)<\/a>/i‘,‘‘,$cont);
php正则匹配到字符串里面的a标签
原文:http://www.cnblogs.com/shaoguan/p/7336966.html