unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* regex question
@ 2007-09-02 17:11 Dave Pawson
  2007-09-02 18:31 ` Peter Dyballa
  0 siblings, 1 reply; 11+ messages in thread
From: Dave Pawson @ 2007-09-02 17:11 UTC (permalink / raw)
  To: emac

I have text reading 'try>Letter'  e.g. 'try[A'
and I want to do a search/replace using regex.

I want to replace it with 'try text>A

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?

TIA

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

^ permalink raw reply	[flat|nested] 11+ messages in thread
* regex question
@ 2003-05-19 14:21 upro
  2003-05-19 15:52 ` Danilo Segan
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: upro @ 2003-05-19 14:21 UTC (permalink / raw)


This might be a stupid question:

I want to use M-x replace-regexp like this

s/[a-z]''/$1"/g

the first part [a-z]'' works, but then the mathed lowercase letter is
not reinserted, but a litteral $1.

How does that work in emacs-regex? I don't find the relevant info in
the info file...

Of course I could use \w'' - but I want to know how it works!

Thank You In Advance...

-- 
Michael

r-znvy: zvpunry.wryqra  jro.qr (chg gur "@" jurer vg svgf...)
ab fcnz cyrnfr

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-09-03  6:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
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

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).