110,534
社区成员
发帖
与我相关
我的任务
分享
\(\d{1,3}(?:,\d{1,3}){5}\)
string r = @"(\(\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}\))";
string rt = "1111111111(12,22,1,17,164)11111(111,22,1,17,164,147)";
string[] str = Regex.Split(rt, r);
Regex re = new Regex(r, RegexOptions.IgnoreCase);
MatchCollection m = re.Matches(rt);
foreach (Match ma in m)
{
Group g = ma.Groups[0];
MessageBox.Show(ma.Groups.Count.ToString());
}
\(\d{1,3}(?:,\d{1,3})*\)