From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Storing regular expressions somewhere....
Date: Wed, 23 Aug 2006 08:27:33 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICMEGADIAA.drew.adams@oracle.com> (raw)
In-Reply-To: <e02b8c250608230705o7d3e006aic44b9d083abd48fa@mail.gmail.com>
Sometimes I need to do complicated replace-regexps. However, they can
be prone to errors, so what I end up doing is an
isearch-forward-regexp until I get the expression correct. Once it is
correct, I write it down and then type it back into a replace-regexp
command! Rather cumbersome....Is there some sort of
isearch-forwared-replace-regexp command ? Or can I recall the previous
regexp searched for in my isearch-forward-regexp?
You might want to take a look at Icicles, which lets you use `C-=' to recall
a string (e.g. a regexp) that you've saved in a variable, into the
minibuffer later as input. Here's an explanation:
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Inserting_a_Regexp_from_a_Va
riable
HTH.
next prev parent reply other threads:[~2006-08-23 15:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-23 14:05 Storing regular expressions somewhere Birju Prajapati
2006-08-23 15:10 ` Birju Prajapati
2006-08-23 15:27 ` Drew Adams [this message]
[not found] ` <mailman.5508.1156345825.9609.help-gnu-emacs@gnu.org>
2006-08-23 15:45 ` Johan Bockgård
-- strict thread matches above, loose matches on Subject: below --
2006-08-23 18:29 Jay Bingham
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=DNEMKBNJBGPAOPIJOOICMEGADIAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/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).