help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: regex question


From: Dave Pawson
Subject: Re: regex question
Date: Mon, 3 Sep 2007 07:52:12 +0100

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 via email to

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