fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string pattern = @"\G(?!S[0-9]{2}\.E[0-9]{2})([^.]+)\.";
  9. string input = @"XXXXXXXX.XXXXXXX.XXXXXX.S11.E22.SOMETHINGELSE";
  10.  
  11. foreach (Match m in Regex.Matches(input, pattern))
  12. {
  13. Console.WriteLine(m.Groups[1].Value);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.06s 21332KB
stdin
Standard input is empty
stdout
XXXXXXXX
XXXXXXX
XXXXXX