fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string s = "a b c d e f g h \t\t i";
  9. var test = Regex.Split(s, @"\s{2,}");
  10. Console.WriteLine(test[0]);
  11. Console.WriteLine(test[1]);
  12. Console.WriteLine(test[2]);
  13. Console.WriteLine(test[3]);
  14. }
  15. }
Success #stdin #stdout 0.06s 34056KB
stdin
Standard input is empty
stdout
a
b c d
e f g h
i