R
roger_varley
Hi
I've got an application (over which I have no control) that presents
its data as a single string. The data contains ' (single quote)
characters that denote end of line. However, the data can also
legitimately contain the ' character, so the generating program escapes
any embedded ' characters with ? (Question mark). (Its a Tradacomms
formatted EDI file if anyone is interested).
How/Can I phrase the regexp parameter to the Pattern.split() method to
split the string back into the original lines. Once I've cracked this,
the + and : characters used to split each line into groups and
individual fields should be easy
Or am I going to have to hand-roll this by reading the string a
character at a time?
Regards
Roger
I've got an application (over which I have no control) that presents
its data as a single string. The data contains ' (single quote)
characters that denote end of line. However, the data can also
legitimately contain the ' character, so the generating program escapes
any embedded ' characters with ? (Question mark). (Its a Tradacomms
formatted EDI file if anyone is interested).
How/Can I phrase the regexp parameter to the Pattern.split() method to
split the string back into the original lines. Once I've cracked this,
the + and : characters used to split each line into groups and
individual fields should be easy
Or am I going to have to hand-roll this by reading the string a
character at a time?
Regards
Roger