fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8.  
  9.  
  10. String inputString = @"TextBlock Text=""this is a test""";
  11. String result = Regex.Replace(inputString, @"(?<=TextBlock Text="")[\w\s]+(?="")", "Any given string comes here");
  12. Console.WriteLine(result);
  13.  
  14. }
  15. }
Success #stdin #stdout 0.06s 33968KB
stdin
Standard input is empty
stdout
TextBlock Text="Any given string comes here"