View Single Post
Old 10-22-2020, 02:23 AM   #1
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Buglet? Warning Message needed?

Hi

I have been using Search and Replace and the Saved Searches and switching between them in the Calibre Editor a lot recently.

I have noticed that when I appear to have have the sane regex in both and use the count facility on Search and Replace and the Saved Searches I sometimes get different counts.

I investigated the issue and found this

1. Highlight text <br class="calibre8"/>
2. Paste into Saved Searches Editor
3. Click on Count button
4. Get a count of X

5.Highlight text <br class="calibre8"/>
6.Click on Magnifying Glass Button
7. It puts the text
8. Use the Count Menu Option
9. Get a count of Y

I think I have spotted why this happens. When the Magnifying Glass Button is used to populate Search and Replace it escapes the outer chevrons i.e. \*<br class="calibre8"/>.

When text is pasted into Saved Searches it does not automatically escape the outer chevrons i.e. <br class="calibre8"/>.

I do not know what if anything should be done about the above but I have a suggestion which might help. Please see my next posting.
Thasaidon is offline   Reply With Quote