没测试
$str = file_get_contents("www.php.net");
preg_match_all("|http:\/\/.+?(rar|zip)|is", $str, $match);print_r($match);
$str = file_get_contents("www.php.net");
preg_match_all("|http:\/\/.+?(rar|zip)|is", $str, $match);print_r($match);
$str = "tyututhttp://fgfgfgfg.zip";
preg_match_all("|http:\/\/.+?(rar|zip)|is", $str, $match);print_r($match);
?>有错误啊
Warning: Unknown modifier 'z' in E:\myforum\temp\hihiyou\get2.php on line 3
Array ( )