Thread
:
Regex replace p-class in entire book
View Single Post
07-03-2020, 12:09 PM
#
4
thiago.eec
Wizard
Posts: 1,221
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by
AlwaysNew
Thanks JS, but the replace code you suggested replaces the entire chapter.
I need to replace one open and closed p tag (with a nested span and chapter title inside it) with an h1 tag.
This will do:
Search:
Code:
<p class="p23">(.*?)</p>
Replace:
Code:
<h1 class="p15">\1</h1>
thiago.eec
View Public Profile
Find More Posts by thiago.eec
Track Posts by thiago.eec via RSS