View Single Post
Old 03-12-2008, 10:50 AM   #59
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Gudy View Post
Scripting + regexp + find/replace? This sounds like the BookCleaner functionality in BD. Is this what you had in mind? Anyway, yes, this is probably the most useful scripting application for such a tool. While I am sure that many here can think of dozens of other things they would like to be able to script (ISBN lookup or other net-oriented things, e.g.), I wouldn't consider those core functions of the tool, while something like BookCleaner probably is.
Find/Replace with Regular Expressions is one of THE most useful features of BD - it's something I use all the time.

One simple example: many books you get from PG have page number of the form [Pg xxx] in them. These can trivially be eliminated in BD by searching for "\[Pg [0-9]*\]", setting the "Replace" string to an empty string, and checking the "RegEx" box.

Similarly many PG files use either underscores surrounding a word, or have a word in capital letters to indicate italics. These too can easily be located using a RegEx search.

It really is an essential feature of the program.
HarryT is offline   Reply With Quote