View Single Post
Old 01-12-2012, 08:31 PM   #44
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: 507
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Okay, found something else:

the expression (.*) is not capturing strings that are longer than one line of code. For example:

a search for

Code:
<div[^>]*>(.*)</div>
comes back with zero hits, even though there are multiple instance that should be matched by that, such as:

Code:
    <div class="s1">
      <h4 class="calibre3" id="heading_id_2"><span class="none">Chapter 2.</span></h4>

      <h4 class="calibre3" id="heading_id_3"></h4>
    </div>
ElMiko is offline