View Single Post
Old 10-21-2010, 09:13 AM   #6
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
Just as a general comment, that expression, if I'm not mistaken, selects entries that have the capitalized word "CHAPTER" inside <p>- tags. You might, in general, want to ignore case, as not all books capitalize their chapter headings. So, just include the flag "i" as below:
Code:
//*[((name()='p') and re:test(., 'CHAPTER', "i"))]
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.
Gwen Morse is offline   Reply With Quote