How To Parse A String In C# Code Example

Snippet 1
  string phrase = "The quick brown    fox     jumps over the lazy dog.";
string[] words = phrase.Split(' ');

foreach (var word in words)
Snippet 2
  //Split using a string delimiter instead of a char
data.Split(new string[] { "xx" }, StringSplitOptions.None); 

Similar Snippets

Creating Java Main Method Code Example - java

Find Duplicates In Arraylist Java Code Example - java

Java Creat A Folder Code Example - java

Firestore Find Doc And Set Data Code Example - java

Create Copy Of Array From Another Array Code Example - java