View Single Post
Old 01-05-2017, 09:19 AM   #8
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,078
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
Normal searches are converted into regexes internally, so you have to use a double backslash in the replace expression, i.e. use

\\1 -
I didn't know that either. Is it in the manual?

Possibly when a user is in [Normal] search mode and enters a backslash or other escape-able character, Calibre could change the search and replace terms internally to be compatible with he internal RE engine?

Not knowing the 'trick' could lead to a lot of head scratching

Last edited by phossler; 01-05-2017 at 09:24 AM.
phossler is offline   Reply With Quote