[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: refer to "\n" in replace-regexp

From: Edi Weitz
Subject: Re: refer to "\n" in replace-regexp
Date: Tue, 18 Nov 2003 09:46:38 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

On 18 Nov 2003 09:18:23 +0100, Joerg Schuster <> wrote:

> I often need to replace characters with the "\n" character. How can
> this be done with replace-regexp?

I suppose you mean the newline character. You can do that with C-q C-j.

> Is there a list of Emacs regexpressions somewhere in the net? (It
> took me some time to find out (by trial and error) that "\t" has to
> be referred to by pressing the TAB key.)

That's actually not part of the regex syntax - tab and newline are
"just" ordinary characters. Try C-h k C-q to see what C-q is for.


reply via email to

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