View Single Post
Old 03-17-2013, 11:32 AM   #5
geormes
Groupie
geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.geormes ought to be getting tired of karma fortunes by now.
 
geormes's Avatar
 
Posts: 153
Karma: 216188
Join Date: Jul 2010
Device: Nook Classic, Kobo Touch, Nook Simple Touch, Kobo Aura
Quote:
Originally Posted by DNSB View Post
While it is useful for removing repeated garbage, I'd suspect he is not going to get much use out of the regular expression search and replace in Calibre when replacing random text unless he is a regex wizard.

Regards,
David
His specific problem appears to be a simple text search and replace.

Bring up search and replace, choose wizard, select bad text, copy in regex box, select test, Calibre returns number of instances and highlights them , if ok hit ok and add replacement text. Convert book. Previous copy is retained along with new.

True this does not correct the HTML source file, but for most simple tasks does the job.
geormes is offline   Reply With Quote