From: Le TeXnicien de Surface <texnicien.de.surface@chezmoi.eur>
To: help-gnu-emacs@gnu.org
Subject: Re: case change in replacement text with regex-replace
Date: Sun, 15 Apr 2007 10:22:18 +0200 [thread overview]
Message-ID: <4621e0c0$0$5094$ba4acef3@news.orange.fr> (raw)
In-Reply-To: mailman.2074.1176581215.7795.help-gnu-emacs@gnu.org
Dieter Wilhelm écrivait :
> Le TeXnicien de Surface <texnicien.de.surface@chezmoi.eur> writes:
>
>> I capture text with the following regexp "\([^"]*\)"
>> and I would like the following:
>> if AB is the captured text, the replacement text is: AB ab Ab aB.
>
> I do not understand, your regexp catches all chars (including
> newlines) except `"' and your example has only two chars?
First of all, many thanks for the answer.
It seems that I was anything but clear so I will try to restate my question:
I know I will obtain a string of two characters (the capturing regexp is in
fact immaterial) and what I would like to obtain from, say, AB is the
string `AB ab Ab aB' as previously stated. I could even easily capture two
strings of one character each. So, in a nutshell: How do we change the case
of a character, previously captured, in the replacement string? Is there
anything as the perl \U to be used in the replacement part of a
regex-search and replace?
Many thanks in advance for any hint
--
Le TeXnicien de Surface
next prev parent reply other threads:[~2007-04-15 8:22 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 [this message]
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
[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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='4621e0c0$0$5094$ba4acef3@news.orange.fr' \
--to=texnicien.de.surface@chezmoi.eur \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.