fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Console.Write(Regex.Replace("fooinbar-inbaz", "(?<one>.*)in(?<two>.*)-in(?<three>.*)", "${one}8888${two}9999${three}"));
  8. }
  9. }
  10.  
Success #stdin #stdout 0.07s 34096KB
stdin
Standard input is empty
stdout
foo8888bar9999baz