fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string str = "= Fields!Change_Date.Value & Fields!Change_User.Value";
  9. string result = Regex.Replace(str, @"^= Fields!(\w+)\.Value & Fields!(\w+)\.Value$", "$1 && $2");
  10. Console.WriteLine(result);
  11. }
  12. }
  13.  
Success #stdin #stdout 0.06s 27652KB
stdin
Standard input is empty
stdout
Change_Date && Change_User