[問題] 抓取html table 裡面的中文
看板RegExp (正規表示式 Regular Expression)作者woominin (沒事就好)時間10年前 (2014/10/04 14:25)推噓0(0推 0噓 2→)留言2則, 1人參與討論串1/1
使用: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個網址裡 所有我要的聯絡資訊呢 ??
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.198.188.68
※ 文章網址: http://www.ptt.cc/bbs/RegExp/M.1412403911.A.518.html
→
10/06 22:07, , 1F
10/06 22:07, 1F
→
10/06 22:07, , 2F
10/06 22:07, 2F
RegExp 近期熱門文章
PTT數位生活區 即時熱門文章