using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace TSConsole
{
class Program
{
static void Main(string[] args)
{
string mystring = " abc defg(1,2,3,4)dfjdkfsl";
Regex Re = new Regex(@"\((.*?)\)");
Match M = Re.Match(mystring);
if (M.Success)
{
Regex Re2 = new Regex(@"(\d{1,})");
MatchCollection Mc=Re2.Matches(M.Value);
foreach(Match M2 in Mc)
{
Console.WriteLine(M2.Groups[1].Value);
}
}
else
{
Console.WriteLine("nothing ");
}
Console.ReadKey();
}
}
}