|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,688
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Regex to convert to Uppercase
Hi,
I am using the Calibre book editor and I am trying to convert the first letter of the chapter headings from lowercase to uppercase. My search regex is... PHP Code:
PHP Code:
calibre, version 5.32.0 Spoiler:
I can't see where I am going wrong. Does anybody know? Thanks
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is no \U operator in calibre's regex engine. You should use function mode: https://manual.calibre-ebook.com/function_mode.html
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,688
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
That is what I ended up doing. I used the preset regex-function for Title case. |
|
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,763
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| regex-function convert roman numerals | weberr | Editor | 11 | 09-22-2021 06:15 PM |
| Help with uppercase | ajean4 | Library Management | 0 | 04-19-2021 12:14 PM |
| Regex to find author names all in uppercase? | Vortex | Library Management | 3 | 08-03-2016 07:50 PM |
| Help with Regex - find groups of words in uppercase | Hoods7070 | Sigil | 3 | 06-11-2013 09:41 AM |
| Touch Uppercase!! | snirp | Kobo Reader | 4 | 02-12-2012 11:08 PM |