I have this string (it's from EDI data):
ISA*ESA?ISA*ESA?
The *
indicates it could be any character and can be of any length.
?
indicates any single character.
Only the ISA
and ESA
are guaranteed not to change.
I need this split into two strings which could look like this: "ISA~this is date~ESA|"
and
"ISA~this is more data~ESA|"
How do I do this in c#?
I can't use string.split, because it doesn't really have a delimeter.