Forums / Setup & design / string replace
Marko Žmak
Wednesday 22 June 2005 5:16:54 pm
Is there an operator in eZ that would replace a part of string with another string? For example we have string:
a = "test 1, test 2, test 3"
and we want to replace all occurences of the word "test" in string a with string "exam" to get the string:
"exam 1, exam 2, exam 3"
I couldn't find anywhere an operator that would do something even similar to this.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth
Vjeran Vlahovic
Wednesday 22 June 2005 11:23:43 pm
Hi Marko,check this:
http://www.ez.no/community/contribs/template_plugins/string_replace_operator
http://www.netgen.hr/eng
Thursday 23 June 2005 4:48:57 am
Thx. Does anyone know if there are any chances to include this operator in standard ez installation?
Script start
Module start 'content'
Module end 'content'
Script end
Time used to render debug report: 0.0002 secs