I have this code to search in a string and replace some text with other text:
Regex regexText = new Regex(textToReplace);
retval = regexText.Replace(retval, Newtext);
textToReplace may be "welcome" or "client" or anything.
I want to ignore case for textToReplace so that "welcome" and "Welcome" both match.
How can I do this?