佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 877|回复: 4

preg_match_all 求助

[复制链接]
发表于 1-3-2013 06:18 PM | 显示全部楼层 |阅读模式
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>     
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 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 | 显示全部楼层
还是拿不到。有谁可以帮帮我。万分感激
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 3-10-2025 05:49 AM , Processed in 0.104147 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表