![]() |
#1 | |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Edit Book: ERROR: Unhandled exception
![]() What's going on there!? ERROR: Unhandled exception Error Report Quote:
|
|
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I saw no captures ( ) in search
also when searching for REGEX controls they need to be escaped: \\1 through \. \. \. and there may be a bug as I would have expected 'Not Found' instead of a crash |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,183
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
bernie |
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,183
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Normal searches are converted into regexes internally, so you have to use a double backslash in the replace expression, i.e. use
\\1 - |
![]() |
![]() |
![]() |
#7 |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Special characters (so-called metacharacters) are certain characters with special meanings and have to be escaped with a backslash, if used as literal character.
There are 12 metacharacters, backslash \ is one of them. (Escaping rules can get tricky. I didn't test the other 11 mCH.) Last edited by chaot; 01-05-2017 at 11:06 AM. Reason: delete: it's not that important. [reason: could be misunderstood] |
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
Possibly when a user is in [Normal] search mode and enters a backslash or other escape-able character, Calibre could change the search and replace terms internally to be compatible with he internal RE engine? Not knowing the 'trick' could lead to a lot of head scratching Last edited by phossler; 01-05-2017 at 09:24 AM. |
|
![]() |
![]() |
![]() |
#9 |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
I don't know if that can help you, but: calibre is written in Python (rather sure), so things get handled the special 'Python' way. Look here → Strings, Backslashes and Regular Expressions
Last edited by chaot; 01-05-2017 at 12:58 PM. Reason: replace: 99% → rather |
![]() |
![]() |
![]() |
#10 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unhandled Exception Error | KyBunnies | Calibre | 21 | 03-28-2015 03:20 AM |
ERROR: Unhandled exception | KyBunnies | Devices | 8 | 12-22-2014 03:17 PM |
error: Unhandled exception | library addict | Calibre | 4 | 08-28-2013 06:41 AM |
Unhandled Exception Error | Mi3ke | Calibre | 0 | 06-03-2012 09:43 PM |
Unhandled exception error in Sidux | no.guru | Calibre | 2 | 06-23-2009 03:03 PM |