| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 435 人关注过本帖
标题:求助:请问在winform 中如何用正则提取下面网页代码中的包含在“href="" on ...
只看楼主 加入收藏
zhangxdong4
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2005-5-24
收藏
 问题点数:0 回复次数:1 
求助:请问在winform 中如何用正则提取下面网页代码中的包含在“href="" onclick”中间链接?
请问在winform 中如何用正则提取下面网页代码中的包含在“href="" onclick”中间链接?
各位最好给我源代码,谢谢呀~~~~~~
<th class="new">
 <em>[<a href=" http://www.feidong.cc/forum.php?mod=forumdisplay&fid=16&amp;filter=typeid&amp;typeid=33">评论</a>]</em><a href=" http://www.feidong.cc/forum.php?mod=viewthread&amp;tid=177161&amp;extra=page%3D1" onclick="atarget(this)" class="xst">2011年 观肥东教育有感</a>
<a href=" http://www.feidong.cc/forum.php?mod=redirect&amp;tid=177161&amp;goto=lastpost#lastpost" class="xi1">New</a>
</th>
<td class="by">
<cite>
<a href=" http://www.feidong.cc/home.php?mod=space&amp;uid=9549" c="1">xhq001</a></cite>
<em>2011-7-6</em>
</td>
<td class="num"><a href=" http://www.feidong.cc/forum.php?mod=viewthread&amp;tid=177161&amp;extra=page%3D1" class="xi2">4</a><em>204</em></td>
<td class="by">
<cite><a href=" http://www.feidong.cc/home.php?mod=space&username=%C7%E5%B7%E7%D5%AB" c="1">清风斋</a></cite>
<em><a href=" http://www.feidong.cc/forum.php?mod=redirect&tid=177161&goto=lastpost#lastpost"><span title="2011-7-7 13:43">1&nbsp;小时前</span></a></em>
</td>
</tr>
</tbody>
<tbody id="normalthread_177227">
<tr>
<td class="icn">
<a href=" http://www.feidong.cc/forum.php?mod=viewthread&amp;tid=177227&amp;extra=page%3D1" title="新窗口打开" target="_blank">
<img src="static/image/common/folder_new.gif" />
</a>
</td>
<th class="new">
 <em>[<a href=" http://www.feidong.cc/forum.php?mod=forumdisplay&fid=16&amp;filter=typeid&amp;typeid=30">原创</a>]</em><a href=" http://www.feidong.cc/forum.php?mod=viewthread&amp;tid=177227&amp;extra=page%3D1" onclick="atarget(this)" class="xst">心都碎了</a>
<a href=" http://www.feidong.cc/forum.php?mod=redirect&amp;tid=177227&amp;goto=lastpost#lastpost" class="xi1">New</a>
</th>
<td class="by">
<cite>
<a href=" http://www.feidong.cc/home.php?mod=space&amp;uid=26996" c="1">西湖怪叟</a></cite>
<em>2011-7-7</em>
</td>
<td class="num"><a href=" http://www.feidong.cc/forum.php?mod=viewthread&amp;tid=177227&amp;extra=page%3D1" class="xi2">10</a><em>173</em></td>
<td class="by">
<cite><a href=" http://www.feidong.cc/home.php?mod=space&username=%C7%E5%B7%E7%D5%AB" c="1">清风斋</a></cite>
<em><a href=" http://www.feidong.cc/forum.php?mod=redirect&tid=177227&goto=lastpost#lastpost"><span title="2011-7-7 13:40">1&nbsp;小时前</span></a></em>
</td>
搜索更多相关主题的帖子: 网页代码 href 肥东 
2011-07-07 15:17
jiajiajing6
Rank: 1
等 级:新手上路
帖 子:8
专家分:6
注 册:2010-10-16
收藏
得分:0 
href="([\s\S]*?)" onclick     

这是正则
2011-07-15 15:28
快速回复:求助:请问在winform 中如何用正则提取下面网页代码中的包含在“href= ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017638 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved