$stt='htmlDoc';
$str=str_replace(array("\r\n","\r","\n"),'',$str);
$str=preg_replace('/\<a[^(href)]*?href\=\"http\:\/\/www\.5amix\.com\/gouri\.php.*?\".*?\>([^(baidu)]+)\<\/a\>/','$1',$str);
//[^(baidu)]+ 标签之间不包含<baidu>关键字
//[^(href)]*? 避免贪婪,其实不是正则中的贪婪6月232015

发表评论