I am parsing some delimiter separated values, where ?
is specified as the escape character in case the delimiter appears as part of one of the values.
For instance: if :
is the delimiter, and a certain field the value 19:30
, this needs to be written as 19?:30
.
Currently, I use string[] values = input.Split(':');
in order to get an array of all values, but after learning about this escape character, this won't work anymore.
Is there a way to make Split
take escape characters into account? I have checked the overload methods, and there does not seem to be such an option directly.
aa:bb:00??:99:zz
? – Tulle