Does anyone know how to split a string on a character taking into account its escape sequence?
For example, if the character is ':', "a:b" is split into two parts ("a" and "b"), whereas "a\:b" is not split at all.
I think this is hard (impossible?) to do with regular expressions.
Thank you in advance,
Kedar