View Single Post
Old 05-25-2010, 10:14 AM   #44
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,501
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by vinco View Post
Code:
<b>Page  \d+</b></p><p>
ended up working perfectly in the test, but when I set that as the footer to remove in calibre, the converted epub still contains the page numbers.
With apologies in advance for asking, did you remember to check the 'Remove footer' checkbox?

In your example, there are two spaces between 'Page' and '1'. If that is an accurate copy, then you need to match more than 1 space there. Try
Code:
<b>Page +\d+</b></p><p>
If that doesn't work, then it wouldn't surprise me if there are newlines buried in the middle of the the text you are trying to match. Try
Code:
<b>\s*Page +\d+\s*</b>\s*</p>\s*<p>
chaley is offline