string html = “html代码”;
Regex reg = new Regex(@"(?is)<a[^>]*?href=(['""]?)(?<url>[^'""\s>]+)\1[^>]*>(?<text>(?:(?!</?a\b).)*)</a>");
MatchCollection mc = reg.Matches(html);foreach (Match m in mc)
{
string url = m.Groups["url"].Value;
string text = m.Groups["text"].Value;
}

最新文章

  1. (转)使用minicpan创建本地CPAN
  2. 在其他系统Iframe中显示SharePoint 页面
  3. btn css
  4. Droid4x快照还原
  5. AngularJS--学习笔记(一)
  6. RFS_javascript的使用
  7. 周赛-KIDx&#39;s Pagination 分类: 比赛 2015-08-02 08:23 7人阅读 评论(0) 收藏
  8. rsync拉取远程文件
  9. Struts2文件下载浅析
  10. [GIF] GIF Loop Coder - Introduction
  11. 《JavaScript dom 编程艺术》 placeholder占位符IE8兼容办法。
  12. overfitting
  13. 对HTML5标签的认识(四)
  14. 高可用Redis(九):Redis Sentinel
  15. CentOS7安装MySQL并配置账户等
  16. MVC 使用cshtml的一些基础知识-和相关整理
  17. struts实现邮件发送功能
  18. e-olymp Problem9 N-digit numbers(打表)
  19. MyBatis入参类型是List时判断非空
  20. 天蝎第一季/全集Scorpion迅雷下载

热门文章

  1. Ubuntu 12.04安装VMware Workstation8.0.3
  2. Alamofire使用报错Extra argument &#39;method&#39; in call解决办法
  3. git 错误信息 6 uncommitted changes would be overwritten by merge
  4. java mongodb 基础系列---查询,排序,limit,$in,$or,输出为list,创建索引,$ne 非操作
  5. WIFEXITED WEXITSTATUS WIFSIGNALED(转)
  6. 【struts2】自定义拦截器
  7. “The operation cannot be completed because the DbContext has been disposed” exception with lazy load disabled
  8. sql 置顶功能的查询
  9. java时区转化相关工具方法
  10. hadoop1.2.1+zk-3.4.5+hbase-0.94.1集群安装过程详解