作者woominin (没事就好)
看板RegExp
标题[问题] 抓取html table 里面的中文
时间Sat Oct 4 14:25:09 2014
使用: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:
[email protected]、台东市连航路150号</span></td>
但是这个 class 的名称不尽相同 有许多种
我要怎麽一次去抓取这n个网址里 所有我要的联络资讯呢 ??
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.198.188.68
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/RegExp/M.1412403911.A.518.html
1F:→ jenesis: 这种东西在前端用jquery之类的selector找会比较适合吧? 10/06 22:07
2F:→ jenesis: 硬是要用regex的话可能会比较麻烦 10/06 22:07