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

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

Re: regex question


From: Jesper Harder
Subject: Re: regex question
Date: Mon, 19 May 2003 18:18:49 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

upro <upro@gmx.net> writes:

> I want to use M-x replace-regexp like this
>
> s/[a-z]''/$1"/g

I'm not sure what this means, but I assume you want to replace stuff
like a'' with a".

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

You could do:

   `M-x replace-regexp RET \([a-z]\)'' RET \1" RET'

Regexp syntax in Emacs is described in <info://emacs/Regexps>.


reply via email to

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