fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. using System.Text;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. string str = "STX8abcdefETXSTXNabcdefETX";
  10. string[] mc = Regex.Split(str, @"(?=STX)");
  11. foreach (string m in mc)
  12. {
  13. Console.WriteLine(m);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.04s 134720KB
stdin
Standard input is empty
stdout
STX8abcdefETX
STXNabcdefETX