fork download
  1. using System;
  2. using System.IO;
  3. using System.Text.RegularExpressions;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var line = "splitstring";
  10. var splts = Regex.Split(line, @"(?<=\G.{2})");
  11. Console.WriteLine(string.Join("\n", splts));
  12. }
  13. }
Success #stdin #stdout 0.1s 24288KB
stdin
Standard input is empty
stdout
sp
li
ts
tr
in
g