Quantcast
Channel: MobileRead Forums - Calibre
Viewing all articles
Browse latest Browse all 31491

PCRE

$
0
0
I understand the Python regular expression library doesn't support the \u operator. Is there a different method to capitalize? :blink:

I would like to capitalize the chapter designation in a poorly formatted book e.g. chapter one to Chapter One. I can pattern match with (\D+) (\D+); And know \1 \2 will backreference.
:thanks:

Viewing all articles
Browse latest Browse all 31491

Trending Articles