[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 <dieter@duenenhof-wilhelm.de> 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
- case change in replacement text with regex-replace, Le TeXnicien de Surface, 2007/04/11
- Message not available
- Re: case change in replacement text with regex-replace, Johan Bockgård, 2007/04/17
- Re: case change in replacement text with regex-replace, Dieter Wilhelm, 2007/04/18
- Message not available
- Re: case change in replacement text with regex-replace, David Kastrup, 2007/04/18
- Re: case change in replacement text with regex-replace, Dieter Wilhelm, 2007/04/21