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

## Re: Emacs replace-regexp

 From: David Kastrup Subject: Re: Emacs replace-regexp Date: 26 Jul 2004 12:48:16 +0200 User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Thomas Ruschival <address@hidden> writes:

> I guess I am too stupid to read the regexp syntax of Emacs I can't
> figure out how to access parts of the match for replace like in perl
> or awk with $1,$2....  I'd like to put brackets around the
> hyperlinks of a latex-document.  do I did a replace-regexp
> "(\ref\{.*\})" "$1$" and it doesn't do the trick. so I played a
> little while with the syntax and all I got out were "\$1" on each
> place where once was a hyperlink....hmmm.

You could try reading the documentation in the Emacs manual.

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum