Answers for "replace a character in a string to upper c# without replace"

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

Code answers related to "replace a character in a string to upper c# without replace"

C# Answers by Framework

Browse Popular Code Answers by Language