View Single Post
Old 06-19-2014, 08:09 PM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by mrmikel View Post
search: I[a-z]
replace:l\1

I have found for this to work in calibre editor it has to be search: I([a-z])
in order to pick up the following letter.

AND even though you are indicating small letters [a-z], it will pickup capital and lowercase unless case sensitive is also checked. In this way it is not exactly as you would expect.
That will still pick up every single instance of a capital "I" in the book, as long as it isn't the actual word "I".

If you leave off the captured "([a-z])" then you would get the same results (except for the word "I"), and could replace with "l".

Much better to look for anything-but-punctuation before the "I"... as I did in post #2.

And negative lookbehind means you don't have to capture anything, you can just replace the letter itself.

Last edited by eschwartz; 06-19-2014 at 08:12 PM.
eschwartz is offline   Reply With Quote