fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. Regex re = new Regex("\".*");
  9. Console.WriteLine(re.Replace(" someAttr=\"some text here", "$&\""));
  10. }
  11. }
Success #stdin #stdout 0.07s 37312KB
stdin
Standard input is empty
stdout
 someAttr="some text here"