Find: <p class="calibre2">Hob_0375758275_3p_fm1_r1.qxd 8/30/01 9:35 AM Page (.*?)</p>
Replace: (nothing)
The "(.*?)" is like a wildcard for the page numbers: the "." means any single symbol; the "*" means "zero or more times"....so that will find any batch of symbols no matter how long. The "?" means not to be greedy...meaning it will only select the characters before the first "</p>" it finds...not all the way until the last "</p>"at the end of the document. The "()" around it just tells it to remember the symbols that it finds so we can do something with them later using the code \1 (or \2 or \3 etc depending on how many groups you've saved).
In this instance you don't really need them because you are just going to delete them, but if you wanted to do something similar you could replace the page number into it's own paragraph like this:
replace: <p>Page # \1</p>
From your example that would give us:
<p>Page # iv</p>
<p>Page # a</p>
Cheers,
edit: to replace all of them in the whole epub with one button push just make sure you have "All HTML Files" selected at the bottom, not "Current File" and then push the "Replace All" button on the right.
WARNING: The "replace all" button is not reversable so make sure you have saved a backup.
Last edited by Turtle91; 09-30-2018 at 10:34 AM.
|