fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. namespace TestThat
  5. {
  6. class MainClass
  7. {
  8. public static void Main (string[] args)
  9. {
  10. Console.WriteLine(Regex.Replace(
  11. @"HelloWORld",
  12. @"(?<!^)(?<wordstart>\p{Lu}{1,2})",
  13. @" ${wordstart}",
  14. RegexOptions.Compiled));
  15. Console.WriteLine(Regex.Replace(
  16. @"ÉclaireürfØÑJßå",
  17. @"(?<!^)(?<wordstart>\p{Lu}{1,2})",
  18. @" ${wordstart}",
  19. RegexOptions.Compiled));
  20. }
  21. }
  22. }
  23.  
Success #stdin #stdout 0.06s 38360KB
stdin
Standard input is empty
stdout
Hello WO Rld
?claire?rf ?? J??