From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jeff Newsgroups: gmane.emacs.help Subject: Re: How can I customize this repetive edit? Date: Fri, 23 Jan 2004 17:12:56 GMT Organization: The Boeing Company Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1074879988 21092 80.91.224.253 (23 Jan 2004 17:46:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2004 17:46:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 23 18:46:20 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ak5Nr-0005hz-01 for ; Fri, 23 Jan 2004 18:46:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ak5NN-0001ft-Jg for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Jan 2004 12:45:49 -0500 Original-Newsgroups: gnu.emacs.help Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!newsfeed.mathworks.com!bigboote.WPI.EDU!news.tufts.edu!uunet!dca.uu.net!ash.uu.net!xyzzy!nntp X-Nntp-Posting-Host: poseidon.sea.boeing.com User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) Original-Lines: 21 Original-Xref: shelby.stanford.edu gnu.emacs.help:120367 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16311 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16311 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