111,120
社区成员
发帖
与我相关
我的任务
分享
//借用你的代码
String pattern = @" (? <name>aa.*aa)+ "; //匹配了N个
MatchCollection matchs = Regex.Matches(originalinfo, pattern);
MessageBox.Show(matchs.Count.ToString());
foreach (Match nextmatch in matchs)
MessageBox.Show(nextmatch.Groups["name"].Value);
(?is)<li>[^<]*<a.*?(?:href=\")(?<href>[^\"]*)[^>]*>(?<hrefDesc>.*?(?=</a>)).*?(?:<span[^>]*>)(?<span>.*?(?=</span>))