Answers for "spreate by captial char in c#"

C#
0

spreate by captial char in c#

private string ToUppercase(string input) {
    var regex = new Regex(@"(?<=[A-Z])(?=[A-Z][a-z])|(?<=[^A-Z])(?=[A-Z])");
    return regex.Replace(input, " ");
}
Posted by: Guest on October-11-2021

C# Answers by Framework

Browse Popular Code Answers by Language