Quote:
Originally Posted by Gudy
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.