preg_replace正则表达式
$content = preg_replace('/<tr[^>]*>[\s]*<td[^>]*>[\s]*日比较[\s]*<\/td>[\s\S]*?<\/tr>/ ','',$content);
+ $content = preg_replace('/<tr[^>]*>[\s]*<td[^>]*>[\s]*周比较[\s]*<\/td>[\s\S]*?<\/tr>/ ','',$content);function filter($output){
$pattern = "/<a\shref='(.*?&atkaction=report.*?)'\s>(.*?)<\/a>/";
$m = array();
preg_match_all($pattern, $output, $m);
$pattern2 = array();
foreach($m[1] as $key => $val){
$pattern2[] = "/<a\shref=\'".preg_quote($val,"/")."\'\s>(.*?)<\/a>/";
}
$output2 = preg_replace($pattern2,$m[2],$output);
return $output2;
} 相关推荐
君子务本 2020-06-13
MaggieRose 2020-08-19
山水沐光 2020-08-03
wangzhaotongalex 2020-10-20
wyq 2020-11-11
TLROJE 2020-10-26
风雨断肠人 2020-10-13
duanqingfeng 2020-09-29
rechanel 2020-11-16
luofuIT成长记录 2020-09-22
phphub 2020-09-10
taomengxing 2020-09-07
flyingssky 2020-08-18
山水沐光 2020-08-18
jyj00 2020-08-15
AHuqihua 2020-08-09