[PLUG] Emacs Replace At End of Line
Fred James
fredjame at fredjame.cnc.net
Wed Mar 12 17:21:28 UTC 2008
Rich Shepard wrote:
> I'm trying to replace a '\n' with '),\n', but haven't figured out the
>proper syntax. The search is specified with \$, but if I specify the
>replacement as ),\$ the editor wants to keep adding '),' to the end of the
>same line.
>
> My ORA emacs book has no explicit examples (pages 57-65), and replacing at
>the begging and ending of lines is a frequent occurrence with me that always
>leads to spending a lot of time and failing to get it right.
>
> Cluesticks greatly appreciated.
>
>Rich
>
>
>
Rich Shepard
In sed things like ) and $ must be escaped because they have special
meaning. Example \) and \$
Does emac do something similar? Hope this helps
Regard
Fred James
More information about the PLUG
mailing list