Hi, Does anyone know how to delete quotes in strings, for instance delete the quotes in: 'hello'. I tried to use string.replace but I don't get the syntax right. <dtml-call "REQUEST.set('var',_.string.replace(var,''',' ')"> Or maybe there's a better way? Thanks Frank Zorge
Hi Frank,
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Frank Zorge Sent: dinsdag 22 mei 2001 16:03 To: zope@zope.org Subject: [Zope] Delete quotes in strings
Hi, Does anyone know how to delete quotes in strings, for instance delete the quotes in: 'hello'. I tried to use string.replace but I don't get the syntax right. <dtml-call "REQUEST.set('var',_.string.replace(var,''',' ')"> Or maybe there's a better way?
<dtml-call "REQUEST.set('var',_.string.replace(var,'\'',' '))"> ^ ^ greetings, cb
participants (2)
-
Cornelis J. de Brabander -
Frank Zorge