fork(3) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string s = "string";
  9. string res = Regex.Replace(s, "(.)(?=.)", "$1 ");
  10. Console.WriteLine("==={0}===", res);
  11. }
  12. }
Success #stdin #stdout 0.04s 134848KB
stdin
Standard input is empty
stdout
===s t r i n g===