[Zope] Underscore Caracter
Tue, 05 Sep 2000 15:29:33 +0200
Chris McDonough wrote:
> 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', '_'))">
I've seen this on plenty lines of digicools code and wondered
about if this is more efficient then using just string.replace()
I would say string.replace() should be a bit faster.