MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Conversion (https://www.mobileread.com/forums/forumdisplay.php?f=235)
-   -   PCRE (https://www.mobileread.com/forums/showthread.php?t=187766)

Gunnerp245 08-12-2012 10:57 AM

PCRE
 
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:


All times are GMT -4. The time now is 10:49 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.