CSharp examples for System:String Case
To Friendly Case
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"); } }