[問題] 有中文字怎麼抓阿

作者: frsnic (路人)   2010-11-19 00:31:22
就是我要去抓博客x的書籍資料
假如我要抓他的作者那一欄
可是我的過濾條件裡有中文字 要怎麼弄阿 ~"~
因為是特定的中文字 一直搞不懂
ex: 差點忘記是PHP
$url = "http://www.books.com.tw/exep/prod/booksfile.php?item=0010469473";
$text = iconv("big5", "utf-8",file_get_contents($url));
//網站原始碼
//<li>作者:<a href="http://search.books.cof=author">艾倫.蘭格</a></li>
preg_match('/作者:<a.*>(.*)<\/a>/i', $text, $match);
作者: LPH66 (-6.2598534e+18f)   2009-01-19 09:34:00
呃 "作者"二字怎麼會在 / 的外面...再說你也少了一個全形冒號
作者: frsnic (路人)   2009-01-19 10:08:00
囧 抓到了 原來是我自己耍笨了
作者: No (you stay there)   2009-01-19 11:01:00

Links booklink

Contact Us: admin [ a t ] ucptt.com