fork(4) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. using System.Linq;
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string strText = "EYDLessThan5Days";
  9. var arr = Regex.Matches(strText, @"[A-Z]+(?=[A-Z][a-z]+)|\d|[A-Z][a-z]+")
  10. .Cast <Match>()
  11. .Select(m => m.Value)
  12. .ToArray();
  13. Console.WriteLine(String.Join(" ", arr));
  14. }
  15. }
Success #stdin #stdout 0.07s 34160KB
stdin
Standard input is empty
stdout
EYD Less Than 5 Days