View Single Post
Old 01-03-2011, 06:53 AM   #6
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
There's a XPath tutorial in the usual place.

Did you try using \d+ instead of \d? Looking at what you copied as a chapter heading
Code:
<p class="MsoPlainText"><span>CHAPTER 2</span></p>
I suspect that something like
Code:
//h:p/h:span[re:test(.,'CHAPTER \d+','')]
ought to work. If that still generates four entries per chapter, I'd have a look at the source code if I were you. In that case, I'd suspect there really are four chapter headings hidden somewhere (think inline TOC if there is one...).
Manichean is offline   Reply With Quote