Suppose You have some text with words like these inside:
"foo" ... "bar" ... "file" ... "emacs"
and all you want to do is to replace " with ' '. I know it can be done only asking for the following replacement:
" -> ''
but suppose you would like to do it interactively and with regex, for more complicated case, how can it be done?
I explain myself better: I wish I could have a command, or a series of them, to work in this way:
- Write a regex like
"\\(.*?\\)"and see the results interactively (i.e. currently-visible matches are highlighted as you edit the regexp, and the highlighting is always updated as you make changes). - Once happy with the regexp, specify a replacement such as
' '\1' ' - Interactively replace all matches