Split Pascal Case - CSharp System

CSharp examples for System:String Split

Description

Split Pascal Case

Demo Code

// Copyright (c) 2012 Computer Technology Solutions, Inc.  ALL RIGHTS RESERVED
using System.Text.RegularExpressions;
using System.Text;
using System.Linq;
using System.Globalization;
using System.Collections.Generic;
using System;/*from w w  w.j av  a2 s .  co m*/

public class Main{
        public static string SplitPascalCase(this string str)
        {
            return Regex.Replace(str, "(\\B[A-Z]+|[0-9]+)", " $1");
        }
}

Related Tutorials