Answers for "split array in c#"

11

split string in c#

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

foreach (var word in words)
{
    System.Console.WriteLine($"<{word}>");
}
Posted by: Guest on March-24-2020
-2

how to split a string by in c#

char[] separator = new[] { ',' };
var result = aiTranslatedString.Split(separator, StringSplitOptions.RemoveEmptyEntries).ToList();
Posted by: Guest on October-08-2020
0

c# string split with string

string data = "THExxQUICKxxBROWNxxFOX";

return data.Split(new string[] { "xx" }, StringSplitOptions.None);
Posted by: Guest on October-12-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language