fork(1) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text.RegularExpressions;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. var texto = "13032015joao14032014Juca25";
  10. List<string> partes = new List<string>(Regex.Split(texto, @"(?<=\G.{12})",
  11. RegexOptions.Multiline));
  12.  
  13. foreach (var parte in partes){
  14. Console.WriteLine(parte);
  15. // 13032015joao
  16. // 14032014Juca
  17. // 25
  18. }
  19. Console.ReadLine();
  20. }
  21. }
Success #stdin #stdout 0.08s 24528KB
stdin
Standard input is empty
stdout
13032015joao
14032014Juca2
5