[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another regex problem
From: |
David Kastrup |
Subject: |
Re: Another regex problem |
Date: |
Wed, 26 Oct 2005 00:06:15 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
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