[Top][All Lists]

[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 <> 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


Statistically, most thieves steal           |
from other poor people. Robin Hood stole    |
only from the rich and was a hero.          |
(from <>)    |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]