✅ Split string on list of strings and on whathever number
Hi, I need to split a string in substrings, splitting every time I find some specific strings (e.g. ">>>") and everytime I find a number of whathever length. I can successfully split on any of the specified string, but I cannot do it with numbers. My C# code is the following:
string value = "545: hello world: <<<example text 567 king's choice>>>";string[] separators = new string[] {|| "<<<", ">>>", ":"}string[] substrings = value.Split(separators, StringSplitOptions.TrimEntries);
string value = "545: hello world: <<<example text 567 king's choice>>>";string[] separators = new string[] {|| "<<<", ">>>", ":"}string[] substrings = value.Split(separators, StringSplitOptions.TrimEntries);