Answers for ".net replace ignore case"

C#
1

c# replace string case insensitive

class Program
{
    static void Main()
    {
        string input = "hello WoRlD";
        string result = 
           Regex.Replace(input, "world", "csharp", RegexOptions.IgnoreCase);
        Console.WriteLine(result); // prints "hello csharp"
    }
}
Posted by: Guest on March-29-2020
0

C# how to ignore case

if (val.Equals("astringvalue", StringComparison.InvariantCultureIgnoreCase))
Posted by: Guest on February-14-2021

C# Answers by Framework

Browse Popular Code Answers by Language