Want to insert opening and closing element for set of <p>
tags.
input
<p>Para1</p>
<p>Para2</p>
<p>Para3</p>
expected output
<div>
<para>Para1</para>
<para>Para2</para>
<para>Para3</para>
</div>
How to find the first and last occurrence of <p>(.[^\<]*)<\/p>
and insert <div>