split using string c#
string[] separatingStrings = { "<<", "..." };
string text = "one<<two......three<four";
System.Console.WriteLine($"Original text: '{text}'");
string[] words = text.Split(separatingStrings, System.StringSplitOptions.RemoveEmptyEntries);
System.Console.WriteLine($"{words.Length} substrings in text:");
foreach (var word in words)
{
System.Console.WriteLine(word);
}
listStrLineElements = line.Split(',').ToList();//Split using a string delimiter instead of a char
data.Split(new string[] { "xx" }, StringSplitOptions.None);
Also in C#:
- camera follow
- set decimal point c#
- how to declare variables in c#
- c# download outlook msg file attachment
- when do i need to end a sentence with ; in c#
- how to display an image url in c# picturebox
- sum the digits in c#
- c# loop through object
- how to reduce garbage collection c#
- c# quaternion eular calculator
- how to mock abstract httpcontext using moq .net core
- add row and columns to grid wpf in code
- texture to image unity
- make string
- c# access session in class
- button commandfield commandargument pass textbox
- c# lambda expression
- c# clone stream
- is start called after dontdestroyonload
- download file from url asp net web api c#
- open zip file in c#
- how to detected WindowCloseEvent in other window wpf
- sending email using c#
- asp.net core allow all origins