Although there are many posts on string splitting, I can't find something to address my problem. I need to split a string into an array, but the string has got delimiters on some fields (typically the values with separators in).
String looks something like:
John:"2016/10/15":"15:20:14":"Manager"
If I run:
string[] items = line.Split(':');
it splits the string into 6 items, whereas it should actually only 4.
Any way that the Split function can handle this?
EDIT: The 6 items is:
John
2016/10/15
"15
20
14"
"Manager"
I'm expecting the time (15:20:14) to be one item.