I have a string called \"hello world\"
I need to replace the word \"world\" to \"csharp\"
for this I use:
string.Replace(\"World\", \"csharp\
Extensions make our lives easier:
static public class StringExtensions { static public string ReplaceInsensitive(this string str, string from, string to) { str = Regex.Replace(str, from, to, RegexOptions.IgnoreCase); return str; } }