unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: How can I customize this repetive edit?
Date: Thu, 22 Jan 2004 22:49:44 GMT	[thread overview]
Message-ID: <jwvy8rzsiru.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca> (raw)
In-Reply-To: mailman.1171.1074804795.928.help-gnu-emacs@gnu.org

> 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

  parent reply	other threads:[~2004-01-22 22:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1171.1074804795.928.help-gnu-emacs@gnu.org>
2004-01-22 21:12 ` How can I customize this repetive edit? Chris McMahan
2004-01-22 21:37   ` Johan Bockgård
2004-01-22 22:49 ` Stefan Monnier [this message]
2004-01-23 17:12   ` Jeff
2004-01-22 20:36 exits funnel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvy8rzsiru.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca \
    --to=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).