![]() |
#1 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
regex in calibre editor
I am having trouble getting regex shown in other sections of mobileread to work in the editor. I doubt it is a fault of the editor, but just a flavor that doesn't match up.
I am trying to capitalize a lower case letter in the middle of a name, such as Charles r. Hansen. using (space)\U\1(space) in replace gives an error. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,916
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
remember to escape the period: <space>([a-z]\.)<space> |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,222
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
\U is not supported by the regex engine the editor uses. In an upcoming release, I will be adding the ability to define actual functions as the replacement text which will allow you to do all sorts of sophisticated text processing. Uppercasing being just one of them.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What is format to search for unicode in calibre with regex? | mrmikel | Editor | 4 | 01-15-2014 06:33 AM |
Guide to Regex in Calibre Editor vs Notepad++ | Agama | Editor | 6 | 12-23-2013 05:10 AM |
Little F&R RegEx help to clean a Calibre conversion | phossler | Sigil | 4 | 09-03-2012 08:17 PM |
Square brackets in filename breaking Calibre Regex? | ccsrsj | Library Management | 2 | 06-02-2012 07:38 AM |
Want RegEx to add books to Calibre | huon | Library Management | 0 | 02-02-2012 12:52 AM |