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"
^\d{3} [a-z].*((?:\r?\n.*){0,5})
"
gm
Input 1
New
200 sample text with many lines hell01 hell02 hell03 hell04 hell05 hell06 hell07 hell08
Substitution
200 sample text with many lines hell01 hell02 hell03 hell04 hell05 hell06 hell07 hell08