Regular Expressions 101

Community Patterns

ORDERS96B MATCH ALL ITEM LINES METHOD 2

0

Regular Expression
PCRE (PHP <7.3)

/
^LIN[\s\S]*(?=^UNS)
/
gm

Description

From the first line string of an item line --> ^LIN over line breaks --> [\s\S]* to before (lookahead) the first line after the whole item line string --> (?=^UNS)

Submitted by Raik Zobel - 4 years ago