Mozilla Skin
Translate this page


Replace Node

From Moving Pictures

The replace node is used to replace characters in a string variable.

Attribute Description
name This is a required attribute that defines the return variable of this node.
input This is a required attribute that defines the input variable/string to run the replace against.
pattern This is a required attribute that defines the variable/string to be replaced.
with This attribute defines the variable/string of the replacement.


Example

The following is an example of how to replace all commas (,) of a variable with periods (.) and assign the result to the movie.score variable.

<replace name='movie.score' input='${score[0][0]:htmldecode}' pattern=',' with='.' />