View Single Post
Old 10-21-2010, 09:36 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
Quote:
Originally Posted by Gwen Morse View Post
Is there an expression that will match Roman Numerals inside a paragraph tag?

Right now I have to search through the document by hand and prepend the word "Chapter" to each numeral.

I'd like something that would match it on its own.
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.

Last edited by Manichean; 10-21-2010 at 09:39 AM.
Manichean is offline   Reply With Quote