Single space split : Regular Expression : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Regular Expression »

 

Single space split








    
 

using System;
using System.Text.RegularExpressions;


public class MainClass {
    public static void Main() {

        string u = "Once   Upon A Time In   America";
        Regex p = new Regex(" ");
        foreach (string ss in p.Split(u)) {
            if (ss.Length > 0)
                Console.WriteLine(ss);
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Regular Expression