fork download
  1. using System.Text.RegularExpressions;
  2.  
  3. class RegExSample
  4. {
  5. static void Main()
  6. {
  7. string text = "text _$$12 text";
  8. string result = Regex.Replace(text, @"_\$\$\d+", "#replacement#");
  9. System.Console.WriteLine("result = [" + result + "]");
  10. }
  11. }
Success #stdin #stdout 0.07s 37264KB
stdin
Standard input is empty
stdout
result = [text #replacement# text]