[Zope] converting spaces in dtml-var to something else

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Fri, 11 Jan 2002 21:38:35 +0300


On Fri, Jan 11, 2002 at 11:21:35AM -0700, Mike Doanh Tran wrote:
> What i want to do is to convert all spaces in a string to a "+" sign.

   <dtml-var "_.string.replace(myVar, ' ', '+')">

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.