日期:2014-05-17 浏览次数:20879 次
string pattern = "(?<=作者:\\<a.*\\>).*(?=\\</a\\>)"; MatchCollection mc = Regex.Matches("网页内容", pattern); foreach(Match m in mc) { string name = m.ToString(); // do something }