From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edi Weitz Newsgroups: gmane.emacs.help Subject: Re: refer to "\n" in replace-regexp Date: Tue, 18 Nov 2003 09:46:38 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <8765hit66p.fsf@bird.agharta.de> References: Reply-To: edi@agharta.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069146365 17983 80.91.224.253 (18 Nov 2003 09:06:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2003 09:06:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 10:06:02 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AM1oA-0000dw-00 for ; Tue, 18 Nov 2003 10:06:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AM2gc-0001uG-7y for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2003 05:02:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!trane.agharta.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: trane.agharta.de (62.159.208.82) Original-X-Trace: news.uni-berlin.de 1069145233 56640490 62.159.208.82 (16 [15706]) Mail-Copies-To: never User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:dspmoJkKjMF8oYuoDBHIPPRPye4= Original-Xref: shelby.stanford.edu gnu.emacs.help:118402 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14343 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14343 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. Edi.