The macro searches the value of the specified property for the specified search string and replaces matches with the replacement value specified.
The following table describes the macro specific attributes for the macro:
| Macro Specific Attributes | ||
| Attribute | Description | Required |
| property | The name of the property whose value is to be searched and altered. | Yes |
| string | The search string. | Yes |
| value | The replacement value. | Yes |
See JavaScript String replace() Method documentation for more information on specifying a search string.
<ReplaceString
property="propertyName"
string="o"
value="@@@@"
/>
Result:
Before: The quick brown fox jumps over the lazy dog
After: The quick br@@@@wn fox jumps over the lazy dog
<ReplaceString
property="propertyName"
string="/o/g"
value="@@@@"
/>
Result:
Before: The quick brown fox jumps over the lazy dog
After: The quick br@@@@wn f@@@@x jumps @@@@ver the lazy d@@@@g