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
/
<p[^>]+>(.*?)<\/p>
/
gm
Input 1
New
<p class='myClass1' id="myId1" style="font-weight: bold">some text <span>here</span></p> <p class='myClass2' id="myId2" style="font-weight: bold">some more text <span>here</span></p>
Substitution
<p class='myClass1' id="myId1" style="font-weight: bold">some text <span>here</span></p> <p class='myClass2' id="myId2" style="font-weight: bold">some more text <span>here</span></p>