View Single Post
Old 09-06-2022, 08:59 PM   #49
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 786
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
Quote:
Originally Posted by Turtle91 View Post
...
find: <p class="first">([A-Z])([A-Z ]+)*
replace: <p class="first">\1\L\2\E
I don't recognize \L or \E in regex (neither does Calibre). Is that particular to Sigil?

EDIT: An example of what I get as a result:
Code:
W\LHAT EMBLEMS\E
EDIT 2: According to:

https://regex101.com/

\L and \E are specific to "PCRE (PHP <7.3)" and Calibre's editor is Python based. I can't find an equivalent.

Last edited by enuddleyarbl; 09-06-2022 at 09:23 PM.
enuddleyarbl is offline   Reply With Quote