![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
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,347
Karma: 27182818
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,611
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,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
regex-function convert roman numerals | weberr | Editor | 11 | 09-22-2021 05:15 PM |
Help with uppercase | ajean4 | Library Management | 0 | 04-19-2021 11:14 AM |
Regex to find author names all in uppercase? | Vortex | Library Management | 3 | 08-03-2016 06:50 PM |
Help with Regex - find groups of words in uppercase | Hoods7070 | Sigil | 3 | 06-11-2013 08:41 AM |
Touch Uppercase!! | snirp | Kobo Reader | 4 | 02-12-2012 10:08 PM |