fork(32) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string input = "aaaXaaaXaaaXaaaYXaaa";
  9. string[] result = Regex.Split(input, "(?<!Y)X");
  10. foreach (string s in result) {
  11. Console.WriteLine(s);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.07s 34072KB
stdin
Standard input is empty
stdout
aaa
aaa
aaa
aaaYXaaa