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
/
<h(?:1>|2>Obituary\sfor\s)\K[^><]+
/
gm
Input 1
1
New
<h2>Obituary for John Doe</h2> <h1>James Michael Lee</h1>
Extraction
<h2>Obituary for John Doe</h2> <h1>James Michael Lee</h1>