View Single Post
Old 06-23-2014, 04:39 AM   #1
myki
Zealot
myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.myki can self-interpret dreams as they happen.
 
Posts: 126
Karma: 20236
Join Date: May 2014
Device: Kinde PW v1, Kobo H2O, Onyx Boox T68
Change case in a regular expression

Greetings,

Is there a way to capitalize some text with regex in Calibre ?
I think I've read somewhere that it was possible in python, but not in Calibre.

My goal :
I am trying to improve my "save as" modele, trying to extract the name of the author_sort and capitalize it, and extract the firstname.
For example : from Christie, Agatha to CHRISTIE Agatha
For now, i built 2 personnal fields. It works but it would be better to work with regex...

Thanx for your help
myki is offline   Reply With Quote