From: Leandro Marcolino <leandromarcolino@gmail.com>
To: Help-gnu-emacs@gnu.org
Subject: Replace regexp question
Date: Fri, 7 Jun 2013 23:11:24 -0700 (PDT) [thread overview]
Message-ID: <1370671883916-288179.post@n5.nabble.com> (raw)
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?..
Thank you very much for your help!..
Regards,
Leandro
--
View this message in context: http://emacs.1067599.n5.nabble.com/Replace-regexp-question-tp288179.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
next reply other threads:[~2013-06-08 6:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-08 6:11 Leandro Marcolino [this message]
2013-06-08 12:39 ` Replace regexp question Andreas Röhler
[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
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=1370671883916-288179.post@n5.nabble.com \
--to=leandromarcolino@gmail.com \
--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.
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).