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>\R?
~
ms
Input 1
1
New
<p align="justify">First paragraph</p> <p>Second paragraph</p> <p>Third paragraph</p> <div class="item"> <p>Some paragraph here</p> <p><strong><u>Specs</u>:</strong><br /><br /><strong>Weight:</strong> 10kg<br /><br /><strong>LxWxH:</strong> 5mx1mx40cm</p <p align="justify">second last para</p> <p align="justify">This is the paragraph I am trying to remove with regex.</p> </div>
Substitution
$1
<p align="justify">First paragraph</p> <p>Second paragraph</p> <p>Third paragraph</p> <div class="item"> <p>Some paragraph here</p> <p><strong><u>Specs</u>:</strong><br /><br /><strong>Weight:</strong> 10kg<br /><br /><strong>LxWxH:</strong> 5mx1mx40cm</p <p align="justify">second last para</p> <p align="justify">This is the paragraph I am trying to remove with regex.</p> </div>