View Single Post
Old 06-18-2020, 10:31 AM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,191
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by AlwaysNew View Post
Hi, can anyone help in replacing this class with nested code inside, throughout multiple documents?

From
Code:
<p class="p23"><span id=“ [chapter number] ”></span> [chapter title] </p>
To
Code:
<h1 class="p23"><span id=“ [chapter number] ”></span> [chapter title] </h1>
Thanks!
Quick and dirty but works.
Question does your span id have spaces around the number?
Search:

Code:
<p class="p(\d+)"><span id=“(\d+)”></span>(.*?)</p>
Replace:
Code:
<h1 class="p23"><span id=“\1”></span>\2</h1>
bernie
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-06-18 10-20-50.png
Views:	203
Size:	155.0 KB
ID:	179976   Click image for larger version

Name:	Screenshot from 2020-06-18 10-30-42.png
Views:	191
Size:	158.0 KB
ID:	179978  
gbm is offline   Reply With Quote