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

## Re: Search and replace enclosing \commands{word}

 From: Peter Milliken Subject: Re: Search and replace enclosing \commands{word} Date: Mon, 12 Jan 2009 06:53:43 +1100

Yes, read the help sections on regular _expression_ search and replace. You can "capture" the text between the {}'s and keep it without losing it (read up on submatches).

On Mon, Jan 12, 2009 at 1:31 AM, sharky wrote:
Hi!

I'm using emacs to write LaTeX code, which means I have a lot of stuff
that looks like this:

You get the picture. I wanna search and delete the enclosing thingy,
like so: