guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacing substrings in strings


From: Sebastian Tennant
Subject: Re: Replacing substrings in strings
Date: Wed, 15 Apr 2009 09:09:29 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Quoth address@hidden (Ludovic Courtès):
> 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."

I need to only replace two consecutive spaces.  Also string-tokenize (in
guile-1.8) doesn't like unicode strings...  I have my answer - regexps,
although sledgehammers and nuts come to mind.

I remember reading that work is currently underway to implement wide
string handling in Guile.  Any idea when it might make it into a stable
release?

Seb
-- 
Emacs' AlsaPlayer - Music Without Jolts
Lightweight, full-featured and mindful of your idyllic happiness.
http://home.gna.org/eap





reply via email to

[Prev in Thread] Current Thread [Next in Thread]