用正则表达式求出内容里面的以http://开头的所有url地址
$str ='sina.com健康网sina.com';
preg_match_all("/href=\"([^\"]+)/i", $str, $match);
$urls = $match[1];
$is_url = $_SERVER['SERVER_NAME'];
foreach($urls as $value)
{
if(strstr($value, $is_url)) continue;
echo $value . "
";
}
?>










