Here is an wonderful way to make a string with multiple space and whitespace to convert array in c#.

Revision en1, by csenaeem, 2025-01-02 00:09:50

string s = " Bob Loves Alice "; string[] allwords = s.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

Tags .net core c#

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English csenaeem 2025-01-02 00:09:50 229 Initial revision (published)