public static string ReplaceIgnoreCase(this string input, string search, string replacement)
{
// xxx TODO: put into Atom
// xxx maybe this is faster http://stackoverflow.com/questions/6025560/how-to-ignore-case-in-string-replace
return Regex.Replace(
input,
Regex.Escape(search),
replacement.Replace("$", "$$"),
RegexOptions.IgnoreCase
);
}
}