It is a relatively new feature.
Although anyone keeping a
close eye on certain discussions would have seen Kovid's post indicating that this was going to happen, going back quite some time.
Quote:
Originally Posted by calibre What's New
Release: 2.11 [21 Nov, 2014] New Features- Edit Book: Add a new 'function mode' for the Search and Replace tool
The function mode allows you to create python functions that run on the results of Search and Replace. This allows you to do arbitrarily powerful text processing. For example, you can automatically fix the case of text, automatically add section number to headings, and so on. For examples and documentation, see: http://manual.calibre-ebook.com/function_mode.html
|