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
/
^.*\bEXCLUDE\b.*\R
/
gm
Input 1
New
Firstly include this line EXCLUDE this entire line include this line and this as single match and EXCLUDE this line Lastly include this line
Extraction
Firstly include this line EXCLUDE this entire line include this line and this as single match and EXCLUDE this line Lastly include this line