SyntaxFix
Write A Post
Hire A Developer
Questions
To show both string.Split and Regex usage:
string.Split
Regex
string input = "abc][rfd][5][,][."; string[] parts1 = input.Split(new string[] { "][" }, StringSplitOptions.None); string[] parts2 = Regex.Split(input, @"\]\[");