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
r"
^STARTING LINE(?:.*(?:(?!\n(STARTING|ENDING) LINE)\n.*)*(?=\nSTARTING LINE)|(?![\s\S]*\nENDING LINE)[\s\S]*$)
"
gm
Input 1
1
New
... STARTING LINE with something 83 ... STARTING LINE with other 12 ... ENDING LINE with yet another info ... STARTING LINE with another 43 ...
Extraction
... STARTING LINE with something 83 ... STARTING LINE with other 12 ... ENDING LINE with yet another info ... STARTING LINE with another 43 ...