[Zope] Underscore Caracter

Chris McDonough chrism@digicool.com
Mon, 4 Sep 2000 19:56:12 -0400 (EDT)


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