查看: 877|回复: 4
|
preg_match_all 求助
[复制链接]
|
|
I have the text file contains the words as follow: How can I get the expected results like:
1;1013286234;Kenneth;Kenneth;250.00;
2;12345;David;David;50.00
using preg_match_all? Please help, THANK YOU
<input type="hidden" name="Str0" value="1013286234"/>
<input type="hidden" name="0" value="0281"/>
<tr>
<td width="2%" align="center">1</td>
<td width="2%" align="center">
<a href = "javascript....)">
1013286234
</a>
</td>
<td width="2%" align="center">Kenneth</td>
<td width="2%" align="center">Kenneth</td>
<td width="2%" align="center">
<!-- <bean write name=.... > -->
250.00
</td>
</tr>
<input type="hidden" name="Str1" value="12345"/>
<input type="hidden" name="1" value="0281"/>
<tr>
<td width="2%" align="center">2</td>
<td width="2%" align="center">
<a href = "javascript....)">
12345
</a>
</td>
<td width="2%" align="center">David</td>
<td width="2%" align="center">David</td>
<td width="2%" align="center">
<!-- <bean write name=.... > -->
50.00
</td>
</tr>
|
|
|
|
|
|
|
|

楼主 |
发表于 3-3-2013 12:34 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 3-3-2013 03:42 PM
|
显示全部楼层
可以尝试用HtmlAgilityPack get the data |
|
|
|
|
|
|
|

楼主 |
发表于 3-3-2013 05:19 PM
|
显示全部楼层
感谢回复。尝试HtmlAgilityPack中。可以用 preg_match_all 拿到吗? |
|
|
|
|
|
|
|

楼主 |
发表于 5-3-2013 01:20 AM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|