11-06-2016, 10:38 PM | #1 |
Connoisseur
Posts: 62
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
|
Regex Search doesn't search all files in Edit Book
Very often, I find that the Regex search does not search all files for an expression. If I have previously opened files 1 4 and 6 say, it will search those files and no further.
The dropdown is set to search All text files. In the same session, I have previously changed the dropdown to search Current file only and then changed it back to All text files. Even if I change the dropdown to Selected files and select all the files, it will still only search those files previously opened. Can you suggest how I solve the problem? |
11-06-2016, 11:04 PM | #2 |
creator of calibre
Posts: 44,620
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I cannot replicate this. Searching with "All text files" always searches all terxt files, regardless of what files are open. THe only difference is that it will search the open/current files first.
|
Advert | |
|
11-07-2016, 12:44 AM | #3 |
Connoisseur
Posts: 62
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
|
Further Information
I am searching for this
<p class="calibre12"><span class="calibre10"><span class="italic"><span class="bold">(.+)</span></span></span></p> in the attached file. The search finds Four in split_007, Five in split_008 Six in split_009, Eleven in split_014 and then circles back to find Four in split_007. You will see from the screen attachment that these are the files that are open. When it circles back to split_007 it removes all tabs from the top and only the tab for split_007 shows. I am using Replace and Find Is there perhaps a log I can send you. Also may be of importance, I am on a Mac using version 2.71 Moderator Notice
Removed Copyrighted Material that is in violation of MR Guidelines. This is your only warning. Last edited by theducks; 11-07-2016 at 12:53 AM. Reason: Copyright © 2008 Long Barn Books Limited |
11-07-2016, 02:00 AM | #4 |
creator of calibre
Posts: 44,620
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'm confused. If you are using Replace and Find, how can it possibly circle back to a previously opened file, since presumably the text was already replaced there? What is it circling back to?
I suggest creating a extract from the book you are working one since attaching copyrighted files is not allowed here. |
11-07-2016, 03:22 AM | #5 |
creator of calibre
Posts: 44,620
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I tried the following test on a short book with five HTML files in it.
Open two of the files: Find: and Replace: xxx Do Replace and Find repeatedly until no more matches are found. Then close all open files and do a Find for and No matches are found, thereby showing that all files were processed, not just the two open ones. |
Advert | |
|
11-07-2016, 05:56 PM | #6 | |
Connoisseur
Posts: 62
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
|
Quote:
I would rather not attach anything as the moderator has given me a final warning and I don't want to risk excommunication. This definitely does not happen all the time, in fact, with very few publications indeed. The one that I attached was one of the publications where the replace did not work. I believe the issue to be file-structure based. I thank you for your attention to this, but would just like to leave it there. |
|
11-07-2016, 10:04 PM | #7 | |
Well trained by Cats
Posts: 30,494
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
But changing text to itself is not a valid FAIL test . Of course it will find again when it comes around. |
|
11-07-2016, 11:30 PM | #8 | |
null operator (he/him)
Posts: 21,071
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
11-08-2016, 01:47 AM | #9 |
Connoisseur
Posts: 62
Karma: 10
Join Date: Jun 2012
Device: Kindle, iPad
|
Accept my smack and do understand....however my point is that there are many other occurrences of what I was searching for in the book, but only these 4 instances showed up. The search should have located about 80 occurrences of the search parameters, but only ever produced 4, those of the files already open.
Last edited by GregTheGrate; 11-08-2016 at 01:49 AM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Edit Book - Search question | ColMac | Editor | 4 | 09-23-2016 06:52 AM |
regex search/replace - how to? | Alt68er | Sigil | 1 | 03-11-2014 09:53 PM |
Regex help: Edit Meta Search & Replace: Pad with zero | _noel_ | Calibre | 4 | 11-26-2012 05:31 PM |
E-book viewer search doesn't highlight results? | PracticalEQ | Calibre | 0 | 02-09-2012 01:04 PM |
Google Book Search to search full-text books online | Bob Russell | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 08-19-2006 01:13 PM |