I am parsing some separator separator values, where ? indicated as an escape character if the delimiter is displayed as part of one of the values.
For example: if : is a separator, and in some field the value is 19:30 , this should be written as 19?:30 .
I am currently using string[] values = input.Split(':'); to get an array of all values, but after learning this escape character this will no longer work.
Is there a way to get Split to take escape characters? I checked overload methods and there seems to be no such option directly.
string split c # escaping
Lee white
source share