[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I customize this repetive edit?
From: |
Jeff |
Subject: |
Re: How can I customize this repetive edit? |
Date: |
Fri, 23 Jan 2004 17:12:56 GMT |
User-agent: |
Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) |
On Thu, 22 Jan 2004 22:49:44 +0000, Stefan Monnier wrote:
>> 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
Stefan - that is really useful to know. Thanks.
-Jeff