View Single Post
Old 03-16-2017, 01:24 PM   #9
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,735
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by chaot View Post
(with Regex) Find marks the whole heading & Replace throws an error message:
Turtle91's regex does work, but only with PCRE-enabled editors such as Sigil. (Calibre uses the Python regex engine which is not PCRE compatible.)

With Turtle91's regex expressions you'll end up with the following in Sigil:

Code:
<h3 id="uoiDbz7uDaeECwRVEqYwYE5"><a href="Inhalt.html#Die 9 »weißen« Städte!">DIE 9 »WEISSEN« STÄDTE!»</a></h3>
As you can see, the PCRE engine is smart enough to replace the ß ligature with SS, which is probably what you want.

BTW, your fragment URL (Inhalt.html#Die 9 »weißen« Städte!) is invalid because it contains spaces and non-ASCII characters.

Last edited by Doitsu; 03-16-2017 at 06:38 PM.
Doitsu is offline   Reply With Quote