View Single Post
Old 09-14-2010, 04:12 AM   #7
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
You could use Sigil to edit the ePub directly, that, at least, would spare you having to go to Word. Not much of an improvement, I'll admit.

As for your initial problem... you gave the example
Code:
preceding text from Introduction<br/><span class="ts1">ONE<span class="ts2"><br/>Beginning text of chapter 1.
for what you want to match. Generally, it should be possible to match tags in a regexp, though, of course, the regexp won't "understand" those tags other than as a string. In your example, the expression
Code:
<span class="ts1">[A-Z]+<span class="ts2"><br/>
should match the chapter headings.

EDIT: Oh, I'm sorry, I misread your post. I'll have to put the thinking cap back on.

Last edited by Manichean; 09-14-2010 at 04:15 AM.
Manichean is offline   Reply With Quote