diff --git a/parse.php b/parse.php index e72ee35..844045f 100644 --- a/parse.php +++ b/parse.php @@ -9,7 +9,7 @@ use Overtrue\Pinyin\Pinyin; $pinyin = new Pinyin(); // 默认 -preg_match_all('/(.*)<\/title>.*<link>(.*)<\/link>.*<pubDate>(.*)<\/pubDate>.*<description>(.*)<\/description>/sU', $html, $data, PREG_SET_ORDER ); +preg_match_all('/<item><title>(.*)<\/title>.*<link>(.*)<\/link>.*<pubDate>(.*)<\/pubDate>.*<description>(.*)<\/description><\/item>/sU', $html, $data, PREG_SET_ORDER ); // var_dump($data);