To Friendly Case - CSharp System

CSharp examples for System:String Case

Description

To Friendly Case

Demo Code


using System.Text.RegularExpressions;
using System.Text;
using System.Globalization;
using System;/*from www.j  a  v a2s  .co  m*/

public class Main{
        public static string ToFriendlyCase(string PascalString)
        {
            return Regex.Replace(PascalString, "(?!^)([A-Z])", " $1");
        }
}

Related Tutorials