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

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

Re: How can I customize this repetive edit?


From: Stefan Monnier
Subject: Re: How can I customize this repetive edit?
Date: Thu, 22 Jan 2004 22:49:44 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> I have a text file which contains a couple of hundred
> lines which look like this:

> >foo   EAL_FOO

> I need them to look like this:

> >  EAL_FOO="foo";

M-x query-replace-regexp RET
^\([a-z]+\) +EAL_\([A-Z]+\) RET
  EAL_\2="\1"; RET


-- Stefan


reply via email to

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