string sentence = "We know it contains 'camel' word.";
// Camel can be in different cases:
string s1 = "CAMEL";
string s2 = "CaMEL";
string s3 = "CAMeL";
// ...
string s4 = "Camel";
// ...
string s5 = "camel";
Как заменить "верблюда" в предложении "лошадью", несмотря на string.Replace
, не поддерживает ignoreCase
в левой строке?