all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Edi Weitz <edi@agharta.de>
Subject: Re: refer to "\n" in replace-regexp
Date: Tue, 18 Nov 2003 09:46:38 +0100	[thread overview]
Message-ID: <8765hit66p.fsf@bird.agharta.de> (raw)
In-Reply-To: crtptfqccog.fsf@pinatubo.cis.uni-muenchen.de

On 18 Nov 2003 09:18:23 +0100, Joerg Schuster <js@cis.uni-muenchen.de> 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.

  reply	other threads:[~2003-11-18  8:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-18  8:18 refer to "\n" in replace-regexp Joerg Schuster
2003-11-18  8:46 ` Edi Weitz [this message]
2003-11-18 10:16 ` Reiner Steib
2003-11-18 10:52   ` Edi Weitz
2003-11-19  9:24   ` Joerg Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8765hit66p.fsf@bird.agharta.de \
    --to=edi@agharta.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.