fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text.RegularExpressions;
  5.  
  6. public class Test
  7. {
  8. public static void Main()
  9. {
  10. var s = "{?:participants::lookup(.,{eeid},[[{catalog}]])}";
  11. var rx = @"(?<!\[\[)\{([^:{}]*)}(?!]])";
  12. var res = Regex.Matches(s, rx).Cast<Match>().Select(x => x.Groups[1].Value);
  13. foreach (var t in res)
  14. Console.WriteLine(t);
  15. }
  16. }
Success #stdin #stdout 0.09s 29960KB
stdin
Standard input is empty
stdout
eeid