using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; public class Test { public static void Main() { var pattern = @"\((?[^,()]+)(?:,(?[^,()]+))*\)"; var str = "Test (1001,Sunday)"; var strings = Regex.Match(str, pattern).Groups["val"].Captures.Select(c => c.Value); foreach (String s in strings) { Console.WriteLine(s); } } }