R
Robert Fuchs
Hi,
an EDIFACT segment starts with a 3 letter acronym and ends with an
apostrophe.
Segments consist of composites, delimited by a plus sign, and composites
consist of data elements, delimited by semicolon, eg.:
BGM+220:::Order+0040750+9'
There is an additional rule, when a delimiter will need to be interpreted as
a normal character and not a delimiter. This can be detected by a question
mark preceding the delimiter, eg.:
FTX+AAI+++ROCK?'N?'ROLL'
The question mark itself is repesented as ??.
Now my problem is, that the Split() method doesn't recognize this.
Is there any other fancy class/method in the framework I could use, or do I
have to go the hard way by reading each character into a state machine -
like I did in C for decades?
regards, Robert
an EDIFACT segment starts with a 3 letter acronym and ends with an
apostrophe.
Segments consist of composites, delimited by a plus sign, and composites
consist of data elements, delimited by semicolon, eg.:
BGM+220:::Order+0040750+9'
There is an additional rule, when a delimiter will need to be interpreted as
a normal character and not a delimiter. This can be detected by a question
mark preceding the delimiter, eg.:
FTX+AAI+++ROCK?'N?'ROLL'
The question mark itself is repesented as ??.
Now my problem is, that the Split() method doesn't recognize this.
Is there any other fancy class/method in the framework I could use, or do I
have to go the hard way by reading each character into a state machine -
like I did in C for decades?
regards, Robert