| Roxen/6.2.236-git | ||
Roxen Interactive RXML Help
<replace></replace>
Replaces strings in the content with other strings.
Attributes
- from
- from=string
This attribute is required.
String to be replaced.
When the "type" argument is "words", this is a list of strings separated according to the "separator" argument.
- to
- to=string
Replacement string. The default is "" (the empty string).
When the "type" argument is "words", this is a list of strings separated according to the "separator" argument. The first string in the "from" list will be replaced with the first one in the "to" list, etc. If there are fewer "to" than "from" elements, the remaining ones in the "from" list will be replaced with the empty string. All replacements are done in parallel, i.e. the result of one replacement is not replaced again with another.
- first
- first=integer
If specified, only replace the first number of specified occurances. Works only together with type='word'
- last
- last=integer
If specified, only replace the last number of specified occurances. Works only together with type='word'
- type
- type={word, words} (word)
"word" means that a single string is replaced. "words" replaces several strings, and the "from" and "to" values are interpreted as string lists.
- separator
- separator=string (,)
The separator between words in the "from" and "to" arguments. This is only relevant when the "type" argument is "words".