fakerac 2012-09-11
$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; }