Replaces matching sections of Expression with the text specified in ReplaceWith.

Properties

Expression

Type: Multiline Text Input
Expression containing text to be replaced.

Method

Type: List Input
Text - Indicates that the value in Find is a text string.
RegEx - Indicates that the value in Find is a Regular Expresson.
The Method to use for replacement. Either plain text or Regular Expression evaluation.

Find

Type: String Input
An Expression describing what should be replaced in the string contained in Expression.

ReplaceWith

Type: String Input
A replacement string.

Output

Type: String Output
The resultant expression.

Remarks

ReplaceWith replaces all the instances of Find in Expression. Support is provided for plain text or Regular Expression matching.

Take care not to use plain strings when using this Node to translate templates. It is recommended that expressions for replacement are encapsulated in curly braces.

Examples

Expression: 'The {animal} jumps over the moon'
Method: Text
Find: '{animal}'
ReplaceWith: 'cow'
Output: 'The cow jumps over the moon'

See Also

Substring

Did this answer your question?