I am trying to split a string, in the following format:
9A ##{Indie; Rock}##
(The string comes from an mp3 tag via TagLib)
The code is:
string[] parts = Regex.Split(comment,"##{");
string prefix = parts[0];
Console.WriteLine(parts[1]);
string[] parts2 = Regex.Split(parts[1], "}##");
string keywords = parts2[0];
string suffix = parts2[1];
However, at the console.writeline, I'm getting back:
Indie
Whereas I'd expect:
Indie; Rock}##
I assume it's something today with the semi-colon terminating the line early, but I don't know why (or how to fix it).