View Single Post
Old 12-02-2023, 05:47 PM   #5
gtriever
Addict
gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.gtriever ought to be getting tired of karma fortunes by now.
 
gtriever's Avatar
 
Posts: 286
Karma: 2125576
Join Date: Sep 2010
Device: Kobo Forma
Quote:
Originally Posted by theducks View Post
Is that the only place with 2 dashes in a P tag
Code:
<p class="calibre3">(.+?\s--\s.+?)
Replace:
Code:
 <hr class="sigil_split_marker" /> <h3 class="chapno">\1</h3>
I happen to use Sigil for this task, but Calibre will work fine with a small adjustment.

The Marker is what you split on.
I made it a H3 tag (chapno is the stylesheet entry)
My apologies, but I'm embarassingly lost by what you just wrote... in fact, in my original post I incorrectly asked for a regex expression when it should have been an XPath expression.
gtriever is offline   Reply With Quote