[問題] 抓取html table 裡面的中文

作者: woominin (沒事就好)   2014-10-04 14:25:09
使用:php
想請問一下,我透過parse得到n個 html
而這n個html 裡,我要的資訊都是像下面這樣放在 table 的td裡
<td width="768" align="center" background="images/index1_11.jpg"
style="color: #000; line-height: 20px; font-size: 13px;">
<span class="style1">T:0912-198577、LINE ID:0912198577、
E:su2729@yahoo.com.tw、台東市連航路150號</span></td>
但是這個 class 的名稱不盡相同 有許多種
我要怎麼一次去抓取這n個網址裡 所有我要的聯絡資訊呢 ??
作者: jenesis (ゼネシス)   2014-10-06 22:07:00
這種東西在前端用jquery之類的selector找會比較適合吧?硬是要用regex的話可能會比較麻煩

Links booklink

Contact Us: admin [ a t ] ucptt.com