Newline Character in Emacs Search and Replace
If you want to search for something and replace it with a newline (or some text containing a newline), to enter a newline character into the "replace" box, use:
C-q C-j
I.e. Ctrl-q then Ctrl-j.
written by Ben Ackland, on Mar 26, 2008 3:35:00 PM.
If you want to search for something and replace it with a newline (or some text containing a newline), to enter a newline character into the "replace" box, use:
C-q C-j
I.e. Ctrl-q then Ctrl-j.
©1997-2010 Netsight Internet Solutions unless otherwise stated. All rights reserved. E&OE.
