fork(4) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. String input = "Hello World 12 7";
  9.  
  10. string[] substrings = Regex.Split(input, "(?i) (?![a-z])");
  11.  
  12. foreach (String str in substrings)
  13. {
  14. System.Console.WriteLine(str);
  15. }
  16.  
  17. }
  18. }
Success #stdin #stdout 0.06s 19740KB
stdin
Standard input is empty
stdout
Hello World
12
7