From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Replace regexp question
Date: Sat, 08 Jun 2013 14:39:10 +0200 [thread overview]
Message-ID: <51B325EE.9030502@easy-emacs.de> (raw)
In-Reply-To: <1370671883916-288179.post@n5.nabble.com>
Am 08.06.2013 08:11, schrieb Leandro Marcolino:
> Hello, all!..
>
> I am trying to add text after multiple occurrences of a group, but it is not
> working. For example, if I try to change the following: "aaaaaa" to
> "aaaaaab", I end up with "ab"...
>
> I am looking for the regexp: \(a\)+ and I replace by \1b. But then the
> sequence of a's is reduced to a single "a". How can I make the final text
> have the same number of occurrences of the group as the original text?..
>
\(a+\)
Cheers,
Andreas
next prev parent reply other threads:[~2013-06-08 12:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-08 6:11 Replace regexp question Leandro Marcolino
2013-06-08 12:39 ` Andreas Röhler [this message]
[not found] <mailman.1206.1370689126.22516.help-gnu-emacs@gnu.org>
2013-06-08 12:41 ` Pascal J. Bourguignon
2013-06-08 16:44 ` Leandro Marcolino
2013-06-08 16:46 ` Leandro Marcolino
2013-06-08 17:27 ` Leandro Marcolino
[not found] <mailman.634.1179145690.32220.help-gnu-emacs@gnu.org>
2007-05-14 19:00 ` replace " Ralf Angeli
2007-05-14 20:08 ` Seweryn Kokot
-- strict thread matches above, loose matches on Subject: below --
2007-05-14 10:33 Seweryn Kokot
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=51B325EE.9030502@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--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.