5 Sep
2000
5 Sep
'00
1:29 p.m.
Hi Chris, 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. Regards Tino