View Single Post
Old 02-18-2013, 09:57 PM   #20
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 504
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Hmmm... sorry for the double post, but I've run into something kind of funky. "Count" and "Go to next" are failing to recognize matches throughout the document if the search is begun on a page in which there's no match for search.

I've noticed this on two separate occasions, but it's probably happened more than that, and simply gone unnoticed.

these are the two regex searches (loaded from my saved searches) that have failed.

Code:
<p [^>]*>(.*?)<a [^>]*>(.*?)</a>(.*?)</p>
and
Code:
<p class="brheavy"><br /></p>\s+<p class="calibre1">
I use them to match the following kinds of strings, respectively:
Code:
  <p class="center"><a href="../Text/File_01.htm">Some</a> text<a id="qewrqwe"></a></p>
and

Code:
  <p class="brheavy"><br /></p>

  <p class="calibre1">some text</p>
(obviously, the red text is excluded from the match)

The first search type sometimes works... I can't replicate the error consistently. But the second one always fails.
ElMiko is offline