$url = "www.im286.com";
$url2 = "www.discuz.net";
if(substr($url,0,7) != "http://"){
$url='http://'.$url;
}
if(substr($url2,0,7) != "http://"){
$url2='http://'.$url2;
}
        $output=strtolower(file_get_contents($url2));
preg_match_all('/<a(.*?)href=(.*?)'.$url.'(.*?)>(.*?)<\/a>/i', $output, $search);本人不才 表达式一窍不通..
php读$url2 然后通过表达式匹配查找出$url的链接
假如带了http://就匹配不到了  不带却没事...求解
该怎么去匹配带了http://的结果