Split with a list of dividers : String Split : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » String Split »

 

Split with a list of dividers








    
 

using System;
using System.Text;
class SplitStringApp {
    static void Main(string[] args) {
        string t = "Once,Upon:A/Time\\In\'America";
        char[] sep2 = new char[]{' ', ',', ':', '/', '\\', '\''};
        foreach (string ss in t.Split(sep2))
            Console.WriteLine(ss);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» String Split