|01-29-2013, 12:23 PM||#1|
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Kindle Fire HDX 8.9 , Kindle voyage
replace all has to be triggered twice
i am seeing some unexplained behaviour with replaceall regex in that it sometimes has to be run twice to truly replace all.
I isolate a phrase & set up the find regex with a blank replace.
then I click replace all & it does one or two replacements, but when I click it again, it does a whole lot more.
I can't puzzle out why it needs to run twice.
e.g. most my recent example - removing unwanted anchors from chapter starts..
I use find
<a class="calibre7" id="filepos\d+"></a>
+ replace all
. expecting 29 hits , 1 per chapter, instead I got only 2 hits, followed by 27 hits at next attempt.
the open xhtml was 1st chapter.
mode regex, all hteml files - down + replace all. nothing else ticked.
any explanation as to why it needed to be run twice?
|01-29-2013, 12:58 PM||#2|
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
I think there may be a glitch with the replace all functionality as I have had a similar experience.
I have a saved Group (to clean up the .css page) with about 9 entries. I hold CTRL (to prevent it from defaulting to All HTML Files) and click on replace all...and it skips the first entry every time. I have to run it a 2nd time to get it to apply.
I hope that helps someone figure out if/where the glitch may be...
|01-29-2013, 01:00 PM||#3|
Join Date: Jan 2011
Device: Kindle PW, K4 NT, K3, Kobo Touch
This is a known issue that should be fixed for the next release.
The problem is due to the way Pretty Print Tidy is run - it wasn't being run before the first replace all.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Another Replace Question||kamanza||Conversion||9||11-09-2011 02:04 AM|
|Why does log not show if unwrap lines has been triggered ?||nwpsys||Conversion||7||06-19-2011 04:38 AM|
|Repair vs Replace||book_addict||Which one should I buy?||8||04-08-2011 08:23 AM|
|search and replace - drops blanks in replace ?||cybmole||Conversion||10||03-13-2011 03:07 AM|
|What will you replace your Kindle with.||pilotbob||Which one should I buy?||33||03-16-2009 11:26 AM|