fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var mc = Regex.Matches("quick%brown%%fox%jumps%over%the%lazy%%dog%", "%([^%]*)%");
  9. foreach (Match m in mc) {
  10. Console.WriteLine(m.Groups[1]);
  11. }
  12. }
  13. }
Success #stdin #stdout 0.07s 34000KB
stdin
Standard input is empty
stdout
brown
fox
over
lazy
dog