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 [solved]


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

Le TeXnicien de Surface <texnicien.de.surface@chezmoi.eur> writes:

>
> I succeeded with query-replace-regexp-eval
> and the following
> (I must say here that the text I work with is in the form « c="AB" »
> and that I want to obtain « c="AB" or c="Ab" or c="aB" or c="ab" » from it)
>
> Here the searching regexp « c="\([A-Z\)\([A-Z]\)" »
> and here the expression evaluated
>
> (concat "c=\"" (upcase \1) (upcase \2) "\" or c= \"" (upcase \1) 
> (downcase \2) "\" or c= \"" (downcase \1) (upcase \2) 
> "\" or c= \"" (downcase \1) (downcase \2) "\"")

Great, but I think a macro would have been a good alternative.

I would have written this profound message to your private mail
address but I'm getting constantly this 8-):

  texnicien.de.surface@chezmoi.eur
    SMTP error from remote mail server after RCPT 
TO:<texnicien.de.surface@chezmoi.eur>:
    host authmailonline.kundenserver.de [212.227.15.180]:
    550 texnicien.de.surface@chezmoi.eur: no such domain

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany




reply via email to

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