![]() |
#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? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,128
Karma: 27110892
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 | |
|
![]() |
#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-06-2016 at 11:53 PM. Reason: Copyright © 2008 Long Barn Books Limited |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,128
Karma: 27110892
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. |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,128
Karma: 27110892
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 | |
|
![]() |
#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. |
|
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,863
Karma: 59840450
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 ![]() |
|
![]() |
![]() |
![]() |
#8 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,588
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#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 12:49 AM. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Edit Book - Search question | ColMac | Editor | 4 | 09-23-2016 05:52 AM |
regex search/replace - how to? | Alt68er | Sigil | 1 | 03-11-2014 08:53 PM |
Regex help: Edit Meta Search & Replace: Pad with zero | _noel_ | Calibre | 4 | 11-26-2012 04:31 PM |
E-book viewer search doesn't highlight results? | PracticalEQ | Calibre | 0 | 02-09-2012 12: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 12:13 PM |