4.1.x has the following functions:
Code:
[var]replace|find-text|replace-text|haystack[/var]
[var]set|local-name|content[/var]
[var]get|local-name[/var]
[var]each|local-name|split-on-char|this-many|template-content[/var]
In "replace", this works basically the same as PHP's str_replace. The first parameter is the text to search for, the second parameter is the text to replace the found text with, and the third parameter is the text where this will be performed. The parameters are separated by |
In "set", this works like a local template. It cannot be passed any arguments. Basically its a way for you to set a text to reuse later. "get" lets you recall that text. It is restricted to the current page/template scope. For example, if you are in the middle of a template stack, only something that was "set" in the same template can be "get."
For "each", this takes the name of a local template that was "set" as the first parameter, and splits the contents of that by the character(s) in the second parameter, up to the number of times specified by the third parameter. Each resulting sub-string is then applied to the content in the fourth parameter by replacing occurrences of the phrase "{text}" in the content with the sub-string.