![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2014
Device: various
|
Mass Find and Replace
I am Sigil Newbie.
I am looking for a way to don mass find and replace of simple patterns like Find "dog" Replace "cat" I am now doing this via the Spellcheck process but I am having to do it over and over. Potentially I will have f&r lists containing 100s of items that I will want to run over 100s of sigl content pages. What are good ways to do this? I see Saved Search tool but I can't figure out how it works from the documentation available. As I said, I am currently doing this via Spellcheck. Is there some way to "save" spellcheck conversions and then rerun them later? Thanks in advance for any light that you can shed on this matter. |
![]() |
![]() |
![]() |
#2 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
From Search, use the find and replace function and choose replace all, if I am understanding what you want.
BEWARE!!! BACK UP YOUR DOCUMENT FIRST! Replace all can not be undone in Sigil. After entering your search criteria, right click to save the search. Save search also allows to load saved searches. Last edited by mrmikel; 08-20-2014 at 01:15 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
In the saved searches window you can also group various searches. If you then select the folder and say replace all, all actions in the folder will be executed in order.
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,031
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
newbies to S&R should stay far away from Replace all's
There is an art to writing search terms that ONLY catch precisely what you want. Code:
F: \scat\s R: dog Extra care is needed to not modify the same term OUTSIDE the <body> block |
![]() |
![]() |
![]() |
#5 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
I had a time recently when I wanted to capitalize all the instances of ATIS, a WWII agency. I also got sATISfaction as well!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
You would want to use a Word Boundary, which is "\b". More information on it can be found here: http://www.regular-expressions.info/wordboundaries.html This would be a more accurate Regex: Code:
F: \bcat\b R: dog Quote:
Quote:
Code:
F: \batis\b R: ATIS Last edited by Tex2002ans; 08-20-2014 at 06:06 PM. |
|||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find/Replace ? | Otter | Calibre | 2 | 10-08-2012 08:48 PM |
Find Replace | unrulyguides | Sigil | 5 | 02-17-2012 08:38 PM |
Find/Replace Won't Find | Rand Brittain | Sigil | 7 | 09-24-2011 04:35 AM |
Find / replace | bremler | Sigil | 6 | 12-17-2010 03:26 PM |
Using Find/Replace with BD | Otter | Sony Reader | 7 | 02-28-2009 01:49 PM |