![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2018
Device: none
|
How I can apply multiple search in order
Greetings, I have multiple search lines that applying to every book I work in (find and replace) can I find plugin or something to find and replace these multiple function in one step?
|
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
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:
Tools: saved search Create a group of the individual saves (move them into the group) To use: Select the group (standard highlight), Click Load (blue circled), click Replace all (red circled) Note:All the Search and replace modes are STILL in control. That is where you set the scope and type. Current file or All HTML or CSS (must use current AND have focus) |
|
![]() |
![]() |
![]() |
#3 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
I dont need to press the load button.... is this a difference between macOS and Windows Version?
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2018
Device: none
|
Thanks for the help it worked!
and good to know that I don't have to use load search. |
![]() |
![]() |
![]() |
#6 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2018
Device: none
|
but I've notice an issue that replace doesn't read specific regex line like $1 that keep page numbers which (\d*) from changing but instead it leaves $1 and remove number like it's a normal text
|
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2018
Device: none
|
Find:
<span class="English" lang="en-US" xml:lang="en-US"><page(\d*)> replace: <span epub:type="pagebreak" id="page$1" title="$1"></span> the results that I got from vs code editor is this: <span epub:type="pagebreak" id="page6" title="6"></span> (which is my attempt) but for some reason the saved searches panel in sigil give the same result which is: <span epub:type="pagebreak" id="page$1" title="$1"></span> but any regex code work fine in it like .*? but not $1 for some reason. |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
PCRE regex doesn't use the $1 syntax for replacements. Use \1 instead.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible to search for books which credits will apply to? | WillAdams | Amazon Kindle | 3 | 01-04-2019 12:24 AM |
How to use multiple gift cards on one order? | RZetlin | Kobo Reader | 3 | 05-05-2014 09:59 PM |
save multiple search/replace, or search/replace multiple ebooks | user743 | Editor | 12 | 04-12-2014 02:38 AM |
Handling chronological order of multiple series | DMee | Library Management | 3 | 08-31-2011 04:17 AM |
Import order when adding multiple books | Sparkling | Library Management | 5 | 07-08-2011 07:41 AM |