![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2019
Device: Kobo Glo HD
|
Using find replace box to append occurances
I need to find/replace or append on the end of a images ending eq#.jpg where the # can be either single or double number.
Looking throught the help eq[0-9].jpg and eq[0-9][0-9].jpg work fine to find these occurrance but how do I say append some text at the end of these occurances? having browsed through https://www.mobileread.com/forums/sh...d.php?t=237181 it seems this should be easily possible but I'd like to do so by filling in the find replace tool: a bit like wildcards of ancient times past ![]() obviously what I filled in the replace section did not work! |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
With regular expressions you can put parenthesis around something to save it then in the replacement text use \1 to insert the saved text. If you use [0-9]+ that matches 1 or more digits so try "eq([0-9]+).jpg" as the Find string and "eq\1.jpg added bit here" for the replacement text.
Also, in the Find text a period matches any single character so you should put a \ in front of it to force it to match the period. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2019
Device: Kobo Glo HD
|
|
![]() |
![]() |
![]() |
Tags |
find by content, replacewith |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Viewer Find text box looses focus during find again ? | nurber | Calibre | 2 | 07-15-2017 11:14 AM |
Find and replace replacement characters - box with question mark | CynthiaBlue | Conversion | 11 | 07-18-2015 12:31 AM |
Sigil find/replace box | LucyLu | Sigil | 2 | 05-28-2012 11:33 AM |
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 |