fork(39) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string input = "doin' some replacement";
  8. string pattern = @"\bdoin'\b";
  9. string replace = "doing";
  10. string result = Regex.Replace(input, pattern, replace);
  11. Console.WriteLine(result);
  12. }
  13. }
Success #stdin #stdout 0.06s 38280KB
stdin
Standard input is empty
stdout
doin' some replacement