[PLUG] Emacs regex: Replace W/Original String

Rich Shepard rshepard at appl-ecosys.com
Tue Apr 26 17:30:16 UTC 2011


On Tue, 26 Apr 2011, Rich Shepard wrote:

>   That does not look familiar, but trying it didn't work for me. Yes, the
> string is parentheses was replaced, but the dollar sign was then added
> rather than a \newline. Must be something I did wrong.

Rogan,

   The built-in emacs info page on regex replacement shows that \& replaces
the entire search string. Unfortunately, when I try \&$ or \& $ I don't get
a \newline but the dollar sign. Any thoughts on why?

Rich



More information about the PLUG mailing list