I have a string as:
string str = "= Fields!Change_Date.Value & Fields!Change_User.Value";
I want the output as:
Change_Date && Change_User
I am able to achieve it with multiple Regex.Replace
methods as:
string str = "= Fields!Change_Date.Value & Fields!Change_User.Value";
string x = Regex.Replace(str, @"=? Fields!", " ");
string y = Regex.Replace(x, @".Value", "");
string z = Regex.Replace(y, @"&", "&&");
How Can I achieve this in one go? Is that possible?