View Single Post
Old 07-03-2020, 12:09 PM   #4
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,221
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by AlwaysNew View Post
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 is offline   Reply With Quote