View Single Post
Old 11-21-2023, 09:45 AM   #24
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,087
Karma: 148029447
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
Actually, thinking this over a bit, you really should include a class="justincase" so you can adjust the style the specific H2 (chapter heads) if needed.

A simple REGEX

S: <p class="calibre_0">(Chapter \d+)</p>
R: <h2 class="justincase">\1</h2>
This is what I would do.

S: <p class="calibre_0">(.*)</p>
R: <h2>\1</h2>

No need for the class. Just style h2 as wanted.
JSWolf is offline   Reply With Quote