Quote:
Originally Posted by wallcraft
If this gives false positives, you can add that CHAPTER is start of an element, "^", and the chapter number, perhaps:
Code:
//*[re:test(., '^CHAPTER [1-9]')]
|
This worked great, except for 1 thing - all chapters appear in the TOC 3 times! Like this:
Chapter 1
Chapter 1
Chapter 1
Chapter 2
Chapter 2
Chapter 2
etc...