任何人都可以解释为什么
Regex.Match捕获非捕获组.在MSDN中找不到任何关于它的信息.为什么
@H_404_2@Regex regexObj = new Regex("(?:a)");
Match matchResults = regexObj.Match("aa");
while (matchResults.Success)
{
foreach (Capture g in matchResults.Captures)
{
Console.WriteLine(g.Value);
}
matchResults = matchResults.NextMatch();
}
产生输出
@H_404_2@a a而不是空的?