10-04-2015, 04:59 AM | #1 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
[Up] Search doesn't seem to work, [Down] does
Using 2.40
My 'All Upper Case' Saved Search used to find the text I can find it manually (1.jpg) but the same Find String in Saved Search doesn't seem to (2.jpg) As far as I can see the Find strings are identical Last edited by phossler; 10-04-2015 at 10:54 AM. Reason: Hopefully more information |
10-04-2015, 07:35 AM | #2 |
creator of calibre
Posts: 44,167
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Its not just the expression, you have to check that the mode is the same and the search is running over the same set of files.
|
Advert | |
|
10-04-2015, 10:38 AM | #3 | |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
However, the difference was the search that fails is Direction=Up (3.jpg and 4.jpg), and the one that works is Direction=Down (5.jpg) The manual S&R also fails if Direction=Up, even if the insertion point is below the text that should be found. Last edited by phossler; 10-04-2015 at 11:15 AM. |
|
10-04-2015, 11:22 AM | #4 |
creator of calibre
Posts: 44,167
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IIRC the regex engine cannot do reverse searches with back references, since at the time of the back reference, the group has not yet matched.
You either need to replace \1 with [hH][1-6] or use direction down. |
10-04-2015, 12:17 PM | #5 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Darn
Thanks for explaining |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saved Search/Regex Functions | eschwartz | Editor | 67 | 03-29-2024 06:37 AM |
Saved Search: How 2 | theducks | Library Management | 3 | 11-27-2012 02:10 PM |
Editing a saved search | crossi | Library Management | 3 | 06-26-2012 12:12 PM |
Remove Saved Search | TonytheBookworm | Calibre | 3 | 12-10-2010 11:45 AM |
Need help setting up a saved search | ficbot | Calibre | 1 | 07-10-2010 02:10 PM |