View Single Post
Old 10-30-2010, 11:46 PM   #12
Gwen Morse
Addict
Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.Gwen Morse never is beset by a damp, drizzly November in his or her soul.
 
Posts: 254
Karma: 59872
Join Date: Dec 2009
Location: New York, USA
Device: Kindle 3 (wifi) + nokia n900 tablet phone
Quote:
Originally Posted by Manichean View Post
Hm. Roman numerals contain combinations of "I", "V", "X" and maybe "L" (I don't think you'd have to go higher with books). So, the expression
Code:
[IVXL]+
should do the job.

Edit to add: There's a tutorial for regular expressions and XPath in the Calibre manual that might help.
The title: "THE LAST UNICORN" all in capitals triggers a match, like so:

<h2 id="calibre_toc_2" class="calibre4">THE LAST UNICORN</h2>

Otherwise, it does match all the roman numerals in this book and no other unwanted lines.
Gwen Morse is offline   Reply With Quote