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
/
Sub SubName[\s\S]*?End Sub
/
Input 1
1
New
Sub SubName 'sub implementation having multi line statements. It may have comments also. End Sub Sub SubName 'sub implementation having multi line statements. It may have comments also. End Sub
Substitution
Sub SubName 'sub implementation having multi line statements. It may have comments also. End Sub Sub SubName 'sub implementation having multi line statements. It may have comments also. End Sub