Skip to main content
added 318 characters in body
Source Link
Nick
  • 5.8k
  • 5
  • 30
  • 37

Case(Edited: wasn't aware of the `naked link' problem, sorry about that)

Taken from here:

string myString = "find Me and replace ME";
string strReplace = "me";
myString = Regex.Replace(myString, "me", strReplace, RegexOptions.IgnoreCase);

Seems you are not the first to complain of the lack of case insensitive string.Replace.

Case insensitive string

(Edited: wasn't aware of the `naked link' problem, sorry about that)

Taken from here:

string myString = "find Me and replace ME";
string strReplace = "me";
myString = Regex.Replace(myString, "me", strReplace, RegexOptions.IgnoreCase);

Seems you are not the first to complain of the lack of case insensitive string.Replace.

added 49 characters in body
Source Link
Akram Shahda
  • 14.7k
  • 5
  • 46
  • 67
Source Link
Nick
  • 5.8k
  • 5
  • 30
  • 37