unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
To: Le TeXnicien de Surface <texnicien.de.surface@chezmoi.eur>
Cc: help-gnu-emacs@gnu.org
Subject: Re: case change in replacement text with regex-replace [solved]
Date: Mon, 16 Apr 2007 21:50:57 +0200	[thread overview]
Message-ID: <873b30xfmm.fsf@debby.local.net> (raw)
In-Reply-To: <46231e0d$0$25936$ba4acef3@news.orange.fr> (Le TeXnicien de Surface's message of "Mon\, 16 Apr 2007 08\:56\:12 +0200")

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	other threads:[~2007-04-16 19:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11 11:31 case change in replacement text with regex-replace Le TeXnicien de Surface
2007-04-14 20:01 ` Dieter Wilhelm
     [not found] ` <mailman.2074.1176581215.7795.help-gnu-emacs@gnu.org>
2007-04-15  8:22   ` Le TeXnicien de Surface
2007-04-15 23:10     ` Dieter Wilhelm
2007-04-15 23:21       ` Dieter Wilhelm
     [not found]       ` <mailman.2110.1176679588.7795.help-gnu-emacs@gnu.org>
2007-04-16  6:56         ` case change in replacement text with regex-replace [solved] Le TeXnicien de Surface
2007-04-16 19:50           ` Dieter Wilhelm [this message]
     [not found]     ` <mailman.2109.1176678953.7795.help-gnu-emacs@gnu.org>
2007-04-17 23:47       ` case change in replacement text with regex-replace Johan Bockgård
2007-04-18  5:19         ` Dieter Wilhelm
     [not found]         ` <mailman.2192.1176873913.7795.help-gnu-emacs@gnu.org>
2007-04-18 18:09           ` David Kastrup
2007-04-21 21:19             ` Dieter Wilhelm

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=873b30xfmm.fsf@debby.local.net \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=texnicien.de.surface@chezmoi.eur \
    /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).