From: David Kastrup <dak@gnu.org>
Subject: Re: I can't believe: replace regexp in a string
Date: 14 Feb 2003 10:11:22 +0100 [thread overview]
Message-ID: <x5isvnkz0l.fsf@lola.goethe.zz> (raw)
In-Reply-To: 62ede926.0302140037.4db6c80a@posting.google.com
kamphausen@creativepharma.com (Stefan Kamphausen) writes:
> Dear elispWizards,
>
> somehow I can't believe it. When I try to replace a regexp in a string
> I have to create a temporary buffer and use the usual buffer
> replacement commands or write a loop over the sequence. Is that
> true?
No.
(let (pos)
(while (setq pos (string-match "???" string ... pos))
(setq string (replace-match ...)))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2003-02-14 9:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-14 8:37 I can't believe: replace regexp in a string Stefan Kamphausen
2003-02-14 9:04 ` Klaus Berndl
2003-02-14 9:11 ` David Kastrup [this message]
2003-02-14 15:55 ` Stefan Monnier <foo@acm.com>
2003-02-15 15:07 ` Stefan Kamphausen
2003-02-15 17:48 ` Kai Großjohann
2003-02-17 11:24 ` Stefan Kamphausen
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=x5isvnkz0l.fsf@lola.goethe.zz \
--to=dak@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).