fork download
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4. using System.Text.RegularExpressions;
  5.  
  6. namespace A
  7. {
  8. class Program
  9. {
  10.  
  11. static void Main(string[] args)
  12. {
  13. string text = "SomeTextBlaBla(value1,value2,value3)SomeTextBlaBla";
  14. string pattern = @"\((,?([^,]+))+\)";
  15. var t = Regex.Match(text, pattern).Groups;
  16. foreach(var e in t[2].Captures)
  17. Console.WriteLine("{0}", e);
  18. }
  19. }
  20. }
Success #stdin #stdout 0.13s 44504KB
stdin
Standard input is empty
stdout
value1
value2
value3