unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Dave Pawson" <dave.pawson@gmail.com>
To: "Tassilo Horn" <tassilo@member.fsf.org>, emac <help-gnu-emacs@gnu.org>
Subject: Re: regex question
Date: Mon, 3 Sep 2007 07:52:12 +0100	[thread overview]
Message-ID: <711a73df0709022352y3b8b5fcch97313927830a7995@mail.gmail.com> (raw)
In-Reply-To: <873axw2a3h.fsf@baldur.tsdh.de>

On 02/09/07, Tassilo Horn <tassilo@member.fsf.org> wrote:

> > I.e. I want to retain the group ([A-E])
> > so that the finished text reads 'try text>A
> >
> > Does emacs regex support groups please?
>
> Sure it does.
>
> M-x replace-regexp \(try\)\(\>.\) RET \1 text\2 RET

\1 to insert the text!
Yet another case where emacs can do it, just need to find out how!

Many thanks Tassilo.
No Harald, I'd tried the book and failed.
I'll try the info file now.

Thanks to you and Peter for the response.

regard



-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

  reply	other threads:[~2007-09-03  6:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.176.1188753116.18990.help-gnu-emacs@gnu.org>
2007-09-02 18:30 ` regex question Tassilo Horn
2007-09-03  6:52   ` Dave Pawson [this message]
2007-09-02 18:44 ` Harald Hanche-Olsen
2007-09-02 17:11 Dave Pawson
2007-09-02 18:31 ` Peter Dyballa
  -- strict thread matches above, loose matches on Subject: below --
2003-05-19 14:21 upro
2003-05-19 15:52 ` Danilo Segan
2003-05-19 17:20   ` upro
2003-05-19 16:18 ` Jesper Harder
2003-05-19 16:26 ` Kai Großjohann
2003-05-19 19:07 ` Barry Margolin

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=711a73df0709022352y3b8b5fcch97313927830a7995@mail.gmail.com \
    --to=dave.pawson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tassilo@member.fsf.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).