View Single Post
Old 11-22-2023, 05:11 AM   #29
Beathan
Junior Member
Beathan began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2023
Device: PocketBook HD2
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>
Thank you, this solution made my expetations!

The other problem I face is to remove a soft hyphen from all words.
So I need to replace all accurances of

'any character different than space and any special' soft-hyphen 'any character different than space and any special'

to combining those two strings without the hyphen

In example: con-vert into convert
Beathan is offline   Reply With Quote