Regex regex = new Regex(@"<a\s*href=""?(?<url>/info/[^""\s]*)""?[^>]*>(?<title>[^<>]*)</a>", RegexOptions.IgnoreCase);
MatchCollection ms = regex.Matchs(str);
foreach(Match m in ms)
{
Groups["url"];//this is url
Groups["title"];//this is title
}
调试欢乐多
匹配上边这条数据时怎么不行呀,不过还是要谢谢你的热心帮助!