[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnu regex and newline
From: |
Tim Haynes |
Subject: |
Re: gnu regex and newline |
Date: |
Mon, 18 Nov 2002 22:03:17 +0000 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-debian-linux-gnu) |
Peter Lee <pete_lee@swbell.net> writes:
> Is there a way to search for and replace newlines with emacs using regex?
> Been looking through the documentation and I thought there would be some
> escape char like \n or something.
Use C-j - optionally quoted, so:
M-x replace-regexp stuff C-q C-j stuff RET replacementstuff RET
HTH,
~Tim
--
Statistically, most thieves steal |piglet@stirfried.vegetable.org.uk
from other poor people. Robin Hood stole |http://spodzone.org.uk/
only from the rich and was a hero. |
(from <http://www.thegamesjournal.com/>) |