help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: case change in replacement text with regex-replace


From: Dieter Wilhelm
Subject: Re: case change in replacement text with regex-replace
Date: Mon, 16 Apr 2007 01:21:21 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

Dieter Wilhelm <address@hidden> writes:

> I'd try it with the \, command with replace-regexp though
>
> (info "(emacs) Regexp Replace") <- put cursor behind parenthesis and
> type C-x C-e.  The following is just an idea, I didn't check it.  I
> assume you must also make the search and replace command case
> sensitive.
>
> IDEA: \(.\)\(.\) -> \,(concat (upcase \1)(downcase \2) " " (...))

Why so complicated? Maybe the solution to your problem is solvable
with a simple keyboard macro?

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany




reply via email to

[Prev in Thread] Current Thread [Next in Thread]