Split String To Separated Words - CSharp System

CSharp examples for System:String Split

Description

Split String To Separated Words

Demo Code


using System.Text.RegularExpressions;
using System.Collections;
using System;//www. j  a  v  a  2s  . com

public class Main{
    public static string SplitToSeparatedWords(this string value)
      {
         return Regex.Replace(value, "([A-Z][a-z]?)", " $1").Trim();
      }
}

Related Tutorials