Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
block (\w+)\n+([\s\S]*?)(?=\s+block|$)
/
g
Input 1
1
New
extends standard block head <title>title</title> <meta name="description" content="A wonderful thing."> block body <h1>Title</h1> <p>A wonderful paragraph...</p> block scripts <script src="/javascritps/html5shiv.js"></script>