![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Grouping Saved Searches
Is there any way to make a F&R function that can run multiple F&R's with one operation?
I like (personal preference) to replace <p class="bold" <span class="bold <strong> with the briefer <b> ...</b> Same for italics and underline Saved Searches has been great, but now I have 8 or 9. With the new Reg-Ex function, I thought maybe I could 'group' the 8 or 9 into a single super Saved Search that uses a RegEx function Last edited by phossler; 02-27-2015 at 08:21 PM. |
![]() |
![]() |
![]() |
#2 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
In: http://manual.calibre-ebook.com/edit...search-replace
You can bring up the dialog of saved searches via Search->Saved Searches. This will present you with a list of search and replace expressions that you can apply. You can even select multiple entries in the list by holding down the Ctrl Key while clicking so as to run multiple search and replace expressions in a single operation. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Thanks for the Control-Key tip. I didn't know that
That's a little easier, but I still think it'd be handier to be able to define a single RegEx function that would be able to run a number at once |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Write a custom function that parses the Find content, and determines which replacement to use?
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
Problem I came up with was the 'Find' is different for the 8 or 9 Saved Searches I typically use: Find: <p class="bold">(.*?)</p> Replace: <p><b>\1</b></p> Find: <p class="italic">(.*?)</p> Replace: <p><i>\1</i></p> Find: <span class="bold">(.*?)</span> Replace: <b>\1</b> Maybe a 'Super Saved Search' is the wrong term / concept ???? Maybe something like a PI or a macro capability that could give a group of Saved Searches a name and run then all at once. Until then, the multi-select seems to be the best way to go |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
parse the second character and depending on what it is, do the replacement. Just like I said.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
About saved searches and regex | Carpatos | Editor | 22 | 09-30-2020 10:56 PM |
copy saved searches | cybmole | Calibre Companion | 4 | 04-28-2014 07:20 AM |
Saved searches: right pane | roger64 | Editor | 2 | 04-07-2014 09:40 PM |
Where are searches saved? | travger | Calibre | 2 | 08-26-2012 01:37 PM |
Bug with saved searches in 0.7.32 | dasimser | Calibre | 3 | 12-04-2010 08:22 AM |