using System.Text;
using System.Text.RegularExpressions;
public static class StringExtensions
{
public static string ReplaceAll(this string originalString, string[] findValues, string replacementPattern)
{
string joined = string.Join('|', findValues);
string pattern = $"{joined}";
var r = new Regex(pattern, RegexOptions.IgnoreCase);
string updatedString = r.Replace(originalString, replacementPattern);
return updatedString;
}
}