Quote:
Originally Posted by Manichean
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.