Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^LIN[\s\S]*(?=^UNS)
/
gm
Input 1
UNB+UNOC:3+O0013001550GDID0000Z6H:14+80585:14+200218:1455+8' UNH+1+ORDERS:D:96B:UN' BGM+120+4016026958' DTM+4:20200218:102' NAD+BY+437750' NAD+SU+0000080585' NAD+OB+0000080585' NAD+DP+4000::9++Cronus Company:Cronus GmbH & Co. KG+Musterstrasse 3+Kirchdorf++12345+DE'