View Single Post
Old 09-14-2014, 01:12 PM   #21
HYPE
Groupie
HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.
 
HYPE's Avatar
 
Posts: 178
Karma: 1057078
Join Date: Dec 2012
Device: Kobo Aura One
Quote:
Originally Posted by Joques View Post
HYPE, how do you do that? I've been deleting them manually, but it takes a while. I tried putting in a wildcard character in Calibre's editor's search function, but that didn't work.
I'm not sure if Calibre supports regular expressions. If you open the .epub like you would a .zip, you will get all the HTML files. From there you will be able to process them with a more powerful text editor, such as Sublime Text. It can handle REGEX on huge files pretty well, and it can also search throughout a whole folder, so you won't have to work file by file.

Then it is only a matter of writing a regular expression that can find all occurrences. This one seems to be working fine in your case :

Code:
( <a id="page_)([0-9]+)("></a> )

Last edited by HYPE; 07-27-2019 at 02:03 PM.
HYPE is offline   Reply With Quote