fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Example
  5. {
  6. public static void Main()
  7. {
  8. string str = "Hello.world. This..is a test.\nso yeah...";
  9. Console.WriteLine(new Regex(@"(.)\.([^\s\.])").Replace(str, "${1}. ${2}"));
  10. }
  11. }
Success #stdin #stdout 0.08s 37264KB
stdin
Standard input is empty
stdout
Hello. world. This.. is a test.
so yeah...