To show both string.Split
and Regex
usage:
string input = "abc][rfd][5][,][.";
string[] parts1 = input.Split(new string[] { "][" }, StringSplitOptions.None);
string[] parts2 = Regex.Split(input, @"\]\[");
More Related Contents:
- Splitting of words Dynamically in c# [duplicate]
- Split and cut string in C# [closed]
- Take all characters after separator symbol after 5th sign
- Split string into two separate strings [duplicate]
- C# Split String before the first number
- Easiest way to split a string on newlines in .NET?
- Split a string by another string in C#
- C# Splitting Strings?
- How can I split a string with a string delimiter? [duplicate]
- Split a List into smaller lists of N size [duplicate]
- Split a string with delimiters but keep the delimiters in the result in C#
- Splitting a string / number every Nth Character / Number?
- How to keep the delimiters of Regex.Split?
- Split a string with delimiters but keep the delimiters in the result in C#
- Split string, convert ToList() in one line
- C# Regex Split – everything inside square brackets
- Split a string that has white spaces, unless they are enclosed within “quotes”?
- Split string into string array of single characters
- Regex split string but keep separators
- split a string on newlines in .NET
- C# Regex.Split: Removing empty results
- How to extract decimal number from string in C#
- Get values between curly braces c#
- How to split a byte array
- Split string and get first value only
- Regular expression to split string and number
- Splitting a string in C#
- Measuring the length of string containing wide characters
- splitting a string based on multiple char delimiters
- Convert integer to binary in C#