Hmm.. Shouldn't that be:
_.string.join(_.string.split('asd asd'), ' '), '_')
Or, alternatively (and more intuitively),
_.string.replace('asd asd', ' ', '_')
_.string.replace('asd_asd', '_', ' ')
- T.J.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
McDonough
Sent: Monday, September 04, 2000 5:56 PM
To: Marcus Mendes
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] Underscore Caracter
Hi Marcus,
This is untested.
Turn "asd asd" into "asd_asd" and output:
<dtml-var "_.string.join(_.string.split('asd asd'), '_')">
Turn "asd_asd" into "asd asd" and output:
<dtml-var "_.string.join(_.string.split('asd_asd', '_'))">
On Sun, 3 Sep 2000, Marcus Mendes wrote:
> Hello,
>
> I need replace 0x20 (space caracter ) to Undescore Caracter. I need also
> a function that UNDO this operation. How can I to do this in DTML
> sintaxe?
Chris McDonough
Digital Creations, Publishers of Zope
http://www.zope.org
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )