Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to split string into a list ignoring number of spaces c#

using System;

var text = "There  is an old  hawk in the sky";

var words = text.Split(' ', StringSplitOptions.RemoveEmptyEntries);
Array.ForEach(words, Console.WriteLine);
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #split #string #list #ignoring #number #spaces
ADD COMMENT
Topic
Name
9+1 =