[Zope] Converting Whitespaces

Philip Aylesworth zopelist@regalint.com
Fri, 12 Mar 1999 16:30:22 -0500


>I know there is a way to convert underscores to spaces (spacify) but i
>need it the other way around is. There a function to convert spaces to
>underscores and if not how can i do it elseway?

I haven't tryed this but on pg 10 of DTML Users Guide check out:

maketrans(FROM,TO)
and
translate(S,TABLE[, DELS])

it seems to do character for character translations.


Phil A

------------------------------------------
Philip Aylesworth    zopelist@regalint.com
Regal International