I want to search and replace html tag p and /p with div and /div inside blockquote only. the example is as follows :
<blockquote>
<p>paragraph 1</p>
</blockquote>
<p>paragraph 1 outside blockquote</p>
<blockquote>
<p>paragraph 2</p>
<p>paragraph 3</p>
</blockquote>
<p>paragraph 2 outside blockquote</p>
the search regex is :
(<blockquote>)(.*?)(p>)(.*?)(</blockquote>)
and the replace regex is :
\1\2div>\4
The problem is the p tag outside blockquote will be changed too after repeating "replace all" command. The above regex can only search and replace one instance, I have to execute the "replace all" command continually until all p are replaced. Is there any way to repeat the regex automatically? (I use Editpad Pro v.7.2.3)