[Zope] String Replacement Function

2005-07-14 Thread Asad Habib
Is it possible to replace more than 1 type of character in a string simultaneously? If so, what is the correct syntax for this? I am currently using the following: dtml-var _.string.replace(testString, _.chr(10), 'br /') For this string, I want to replace both newlines and carriage returns

Re: [Zope] String Replacement Function

2005-07-14 Thread Tino Wildenhain
Am Donnerstag, den 14.07.2005, 16:00 -0400 schrieb Asad Habib: Is it possible to replace more than 1 type of character in a string simultaneously? If so, what is the correct syntax for this? I am currently using the following: dtml-var _.string.replace(testString, _.chr(10), 'br /') For