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);
}
}
Related examples in the same category