>백엔드 개발 >PHP 튜토리얼 > 求php用正则提取html的列表的数据,该怎么处理

求php用正则提取html的列表的数据,该怎么处理

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB원래의
2016-06-13 12:44:52853검색

求php用正则提取html的列表的数据

<tbody id="pres_table_body" ><br />
		<tr class="odd "  onclick="EXTableUtil.selectRow(this,'pres');"  onmouseover="EXTableUtil.lightRow(this,'pres');"  onmouseout="EXTableUtil.unlightRow(this,'pres');"   ><br />
<td width="40%"   align="left">成都电子商务有限公司</td><br />
<td width="10%"   align="center">杨发</td><br />
<td width="20%"   align="center">51012200012484</td><br />
<td width="20%"   align="center">73770103</td><br />
<td width="10%"   align="center"><br />
				<br />
				<a href="javascript:Detail('R2012121400045944','75203619')"><img  src="/static/imghwm/default1.png"  data-src="/resource/website/images/sButton_xiangxi.gif"  class="lazy"   align="absbottom"/ alt=" 求php用正则提取html的列表的数据,该怎么处理 " ></a> <br />
		        <a href="javascript:ViewFD('杨发','75203619')"><img  src="/static/imghwm/default1.png"  data-src="/resource/website/images/sButton_ckglqy.gif"  class="lazy"   align="absbottom"/ alt=" 求php用正则提取html的列表的数据,该怎么处理 " ></a><br />
		   </td><br />
</tr><br />
	  <br />
		<tr class="even "  onclick="EXTableUtil.selectRow(this,'pres');"  onmouseover="EXTableUtil.lightRow(this,'pres');"  onmouseout="EXTableUtil.unlightRow(this,'pres');"   ><br />
<td width="40%"   align="left">成都科技术有限公司</td><br />
<td width="10%"   align="center">黄灿发</td><br />
<td width="20%"   align="center">51104000170767</td><br />
<td width="20%"   align="center">66531815</td><br />
<td width="10%"   align="center"><br />
				<br />
				<a href="javascript:Detail('R2013031500000871','671529939')"><img  src="/static/imghwm/default1.png"  data-src="/resource/website/images/sButton_xiangxi.gif"  class="lazy"   align="absbottom"/ alt=" 求php用正则提取html的列表的数据,该怎么处理 " ></a> <br />
		        <a href="javascript:ViewFD('黄灿发','671529939')"><img  src="/static/imghwm/default1.png"  data-src="/resource/website/images/sButton_ckglqy.gif"  class="lazy"   align="absbottom"/ alt=" 求php用正则提取html的列表的数据,该怎么处理 " ></a><br />
		   </td><br />
</tr><br />
	  <br />
	</tbody>


php新手
求php用正则提取javascript:Detail('R2013031500000871','671529939')"里的两个参数和td里的值,
一个tr为一行,最好放入数组,谢谢。

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.