View Single Post
Old 10-17-2021, 05:19 PM   #34
firsikov
Junior Member
firsikov began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2021
Device: Kindle Voyager
Hi there!

I have code like that:
Code:
<p class="text">some text</p>
<blockquote class="email">
   <p class="text">some <i>text</i></p>
   <p class="text"><b>some</b> text</p>
   <p class="text">some text</p>
</blockquote>
<p class="text">some text</p>
And i need to change class of P tag only inside of blockquote tag.

Regex search string, like "<blockquote class="email">(.*?)<p class="text">(.*?)</blockquote>" work only if blockquote have only one p tag.

I don't understand, how to create correct search string or even how to ask google for it.

Hope for your help. Thanks.
firsikov is offline   Reply With Quote