Quote:
Originally Posted by Gwen Morse
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.
|
Well, technically, and I should have thought of that, everything containing one of the uppercase letters gets matched. Or, to be precise, the uppercase letters in the words get matched. To avoid this, look at the occurences of the roman numerals, find e.g. what tags they are enclosed in and alter the expression to match those as well.