Multiple different delimiters : Regular Expression : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Regular Expression »

 

Multiple different delimiters








    
 

using System;
using System.Text.RegularExpressions;


public class MainClass {
    public static void Main() {
        string t = "Once,Upon:A/Time\\In\'America";
        Regex q = new Regex(@" |,|:|/|\\|\'");
        foreach (string ss in q.Split(t)) {
            Console.WriteLine(ss);
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Regular Expression