Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-03-02 10:06
Flavor·PCRE (Legacy)

/
^LIN[\s\S]*?^DTM.*
/
gm
Open regex in editor

Description

Same as "ORDERS96B MATCH ALL ITEM LINES METHOD 1" with a lazy quantifier to get multiple matches. This works only, if the last line of a item line elemet is known, otherwise try METHOD 2

From the first line string of an item line --> ^LIN over line breaks --> [\s\S]? to the last line string of an item line --> ^DTM.

Submitted by Raik Zobel