From: David Kastrup <dak@gnu.org>
Subject: Re: Another regex problem
Date: Wed, 26 Oct 2005 00:06:15 +0200 [thread overview]
Message-ID: <85slupqmjs.fsf@lola.goethe.zz> (raw)
In-Reply-To: mailman.12658.1130265846.20277.help-gnu-emacs@gnu.org
exits funnel <exitsfunnel@yahoo.com> writes:
> Hello,
>
> I've bumped into another problem which I'd like to use
> query-replace-regexp to fix if possible. Not I've got
> a bunch of these:
>
> t_foo_Grape_Banana
> t_foo_Pear
> t_foo_Apple
>
> which I'd like to replace with
> t_foo_grape_banana
> t_foo_pear
> t_foo_apple
>
> In other words I'd like to make them uniformly lower
> case but I can't figure out how to accomplish this in
> the replacement string. Is it possible? Thanks in
> advance.
Well, with a developer Emacs, you can use
C-M-% t_foo_[_a-zA-Z]+ RET \,(downcase \&) RET
\, is one of the things that I find pretty convenient.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2005-10-25 22:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.12658.1130265846.20277.help-gnu-emacs@gnu.org>
2005-10-25 21:18 ` Another regex problem rgb
2005-10-25 21:47 ` Pascal Bourguignon
2005-10-25 22:06 ` David Kastrup [this message]
2005-10-27 21:42 ` Edward Dodge
2005-10-25 21:28 Dave Humphries
-- strict thread matches above, loose matches on Subject: below --
2005-10-25 18:44 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=85slupqmjs.fsf@lola.goethe.zz \
--to=dak@gnu.org \
/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).