View Single Post
Old 06-25-2012, 06:21 PM   #5
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by gers1978 View Post
Ok, tried that, now it seems the chapters are defined by:

<div class="mbp_pagebreak"/><blockquote class="calibre_24"><blockquote class="calibre_25"><font size="5">CHAPTER 1</font>
</blockquote></blockquote>
Try:

Code:
//*[re:test(., 'CHAPTER ')]
Note there is no ",'i'" because you want to match just all the capital letter case. If this gives false positives, you can add that CHAPTER is start of an element, "^", and the chapter number, perhaps:

Code:
//*[re:test(., '^CHAPTER [1-9]')]
wallcraft is offline   Reply With Quote