01-04-2017, 05:13 AM | #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:
|
|
01-04-2017, 12:35 PM | #2 |
Well trained by Cats
Posts: 29,689
Karma: 54369090
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 | |
|
01-04-2017, 12:46 PM | #3 | |
Wizard
Posts: 2,080
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
bernie |
|
01-04-2017, 01:08 PM | #4 |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
01-04-2017, 08:02 PM | #5 |
Wizard
Posts: 2,080
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
|
Advert | |
|
01-04-2017, 10:00 PM | #6 |
creator of calibre
Posts: 43,779
Karma: 22666666
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 - |
01-05-2017, 03:55 AM | #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] |
01-05-2017, 09:19 AM | #8 | |
Wizard
Posts: 1,071
Karma: 412718
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. |
|
01-05-2017, 11:16 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 |
01-05-2017, 11:17 AM | #10 | |
creator of calibre
Posts: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
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 |