php
$str = file_get_contents("http://news.163.com/rank/");
preg_match_all("#
(.*)
#i",$str,$match);
for($i=0; $i
{
echo "tttt".preg_replace("#(
)(.*)( )#i","\2",$match[0][$i])."n";
}
?>
php
$str = file_get_contents("http://news.sina.com.cn/hotnews/");
preg_match_all("#
(.*)#i",$str,$match);
for($i=0;$i
{
echo "tttt".preg_replace("#
(.*)#i","\1",$match[0][$i])."n";
}
?>
php
$str = file_get_contents("http://news.qq.com/paihang.htm");
preg_match_all("#
(.*) | #i",$str,$match);
for($i=0;$i
{
echo "tttt".preg_replace("#
(.*) | #i","\1",$match[0][$i])."n";
}
?>