Home > Backend Development > PHP Tutorial > 求php用正则提取html的列表的数据,该怎么处理

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

WBOY
Release: 2016-06-13 12:44:52
Original
820 people have browsed it

求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="/resource/website/images/sButton_xiangxi.gif" align="absbottom"/ alt=" 求php用正则提取html的列表的数据,该怎么处理 " ></a> <br />
		        <a href="javascript:ViewFD('杨发','75203619')"><img  src="/resource/website/images/sButton_ckglqy.gif" 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="/resource/website/images/sButton_xiangxi.gif" align="absbottom"/ alt=" 求php用正则提取html的列表的数据,该怎么处理 " ></a> <br />
		        <a href="javascript:ViewFD('黄灿发','671529939')"><img  src="/resource/website/images/sButton_ckglqy.gif" align="absbottom"/ alt=" 求php用正则提取html的列表的数据,该怎么处理 " ></a><br />
		   </td><br />
</tr><br />
	  <br />
	</tbody>
Copy after login


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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template