Greetings ! I am trying to convert Records which are in a bit of a proprietary layout. Each record contains a header on a new line followed by a comment line (all ---). Following the header (and comment line) is a series of fields of the type " number : fieldname = value". Each record is separated from the next using a blank line.
The complexity here is each record can optionally have one or more sub-record identified as:
" number : SUBRECORD.id(instance)::FIELD.fieldname - value"
These are usually at the end of record field definitions. See example with two records below : (#00001 has SUBRECORDs, whilst #00002 doesn't.
Can you provide a guideline on how I can set up the configuration to parse this kind of layout ? I have looked at the examples and tried quite a few settings looking at them, but I am getting nowhere close to generating the desired output.
Thank you in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Greetings ! I am trying to convert Records which are in a bit of a proprietary layout. Each record contains a header on a new line followed by a comment line (all ---). Following the header (and comment line) is a series of fields of the type " number : fieldname = value". Each record is separated from the next using a blank line.
The complexity here is each record can optionally have one or more sub-record identified as:
" number : SUBRECORD.id(instance)::FIELD.fieldname - value"
These are usually at the end of record field definitions. See example with two records below : (#00001 has SUBRECORDs, whilst #00002 doesn't.
The expected output is as follows:
Can you provide a guideline on how I can set up the configuration to parse this kind of layout ? I have looked at the examples and tried quite a few settings looking at them, but I am getting nowhere close to generating the desired output.
Thank you in advance.