fork(34) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var s = "abcd";
  8. var result = Regex.Replace(s, @"[abc]", @"\$&");
  9. Console.WriteLine(result);
  10. }
  11. }
Success #stdin #stdout 0.02s 134592KB
stdin
Standard input is empty
stdout
\a\b\cd