06-04-2018, 04:18 PM | #1 |
Enthusiast
Posts: 31
Karma: 48958
Join Date: May 2017
Device: iPad Pro 9.7"
|
Replace UPPER with lower?
Does Calibre not have a replacement expression to replace a match with the lowercase version of the match? I've tried the usual regex means of doing so (\L&, e.g.), and nothing seems to work.
I really don't want to use regex functions (and have to write a function) to do something this trivial, so I assume I'm missing something. I've read the pertinent section of the user's guide, and don't see anything mentioned there, either. (I searched for "lower" everywhere in the regex page.) |
06-04-2018, 04:41 PM | #2 |
Enthusiast
Posts: 31
Karma: 48958
Join Date: May 2017
Device: iPad Pro 9.7"
|
I'm still curious about affecting case in replacement expressions (seems an odd omission in this day and age), but I see that function replacements has a built-in to do what I want. So, never mind, sorry for the noise.
|
07-06-2018, 01:42 AM | #3 |
Connoisseur
Posts: 56
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
|
I have a similar problem. I have a book that has roman numerals for chapter numbers. Some of the characters in the chapter number have been scanned as lower case and I would like to convert them to upper. I use Regex search as ([xXvViIlL]+) which finds the chapter numbers. I cannot find the correct replacement string to convert the resulting \1 to upper case. Any help would be appreciated
|
07-06-2018, 02:30 AM | #4 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
07-06-2018, 09:43 PM | #5 |
Connoisseur
Posts: 56
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
|
Many thanks
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Upper to Lower Case Regex - I'm stuck! | Chris_Snow | Sigil | 20 | 11-03-2023 03:54 PM |
Author in Upper Case, Author Sort in Lower Case? | JohnnyBook | Calibre | 5 | 09-18-2015 09:45 PM |
upper case | schaf | Kobo Reader | 2 | 04-10-2013 07:23 PM |
Buy Sony PRS-505 Ornamental Plates both lower and upper | pnyc | Flea Market | 2 | 05-24-2009 11:17 AM |
PDF-->TXT cleaner upper | weblamer | Fictionwise eBookwise | 0 | 01-13-2009 05:01 PM |