62,264
社区成员
发帖
与我相关
我的任务
分享 string str = "d3,d4,d5,3,4,6,";
Regex re = new Regex(@"(?<!d)\d,");
MatchCollection mc = re.Matches(str);
foreach(Match m in mc)
Console.WriteLine(m.Value); string str = "d3,d4,d5,3,4,6,";
Regex reg = new Regex(@"(?<!d)\b\d+");
MatchCollection mc = reg.Matches(str);
foreach (Match m in mc)
{
richTextBox2.Text += m.Value + "\n";
}(?<!d)\d*,\dstring reg = @"(?<!d)\b\d+";