[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Replacing substrings in strings
From: |
Ludovic Courtès |
Subject: |
Re: Replacing substrings in strings |
Date: |
Wed, 15 Apr 2009 10:52:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) |
Hello,
I would probably use, e.g., `regexp-substitute/global' as Linas
suggested. Otherwise, you could try using SRFI-13 as well if it's
enough (consecutive spaces are coalesced here):
(string-join (string-tokenize "hello, world.") " ")
=> "hello, world."
Thanks,
Ludo'.