3

I would like to replace <space><letter><space> with <space><letter>&nbsp;.

I'we try to replace ([aiowz]) with &nbsp;$1 but in calibre it wouldn't work... it would put $1 into text.

What should i put into replace field?

2
  • Did you try using \1 instead of $1? They usually mean the same thing in regex, \1 is the 'old way' though most languages are moving towards the $1 format.
    – Jerry
    Dec 26, 2013 at 10:14
  • Is it an epub or mobi?
    – Matt
    Apr 7, 2015 at 8:41

1 Answer 1

4

In Calibre's Find/Replace window, \1 instead of $1 in the Replace box works well. Just don't forget to set Mode to Regex.

1
  • You just made my day.... 5 years later! Thanks; using the backslash fixed my problem.
    – AFK
    Dec 26, 2019 at 1:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.