Enhance record identification
Brought to you by:
blackbearnh,
dderry
Flatwork provides two mechanisms to match records (at least in the docs) the field-ident/match-string and the line lenght. While this is appropriate for most cases sometimes records need to be matched in a more advanced way. Say by line but looking at patterns in the line. How about adding a new construct <reg-ex> and it runs a regex on a line (I think scoping it to a line would work just fine, on a set of lines would be frosting on the cake).
so
<record-ident>
<reg-ex>^6\d\d\d0[Mm]</reg-ex>
</record-ident>
....
<record-ident>
<reg-ex>^6\d\d\d[Qq]</reg-ex>
</record-ident>
...