Keragon’s Replace Text Helper allows you to efficiently search for patterns, characters, or text strings and replace them with a new value. You can choose to replace just the first occurrence or all occurrences in the text. This is useful for data cleanup, formatting adjustments, and preparing text for further processing.
How to Use the Replace Text Helper
-
Open your workflow editor.
-
Click the + icon to add a new step.
-
In the step selection panel, click "Helpers".
-
From the Helpers options, select "Text Helpers".
-
Choose the "Replace" action.
-
Click the Value field.
-
Use the Variable Selector to map the text value you want to modify.
-
Set the Pattern field with the character, string, or regular expression pattern you want to find and replace.
-
Set the Replacement field with the value you want to insert in place of the pattern. (Leave it empty if you want to remove the pattern.)
-
Select
true
orfalse
in the Replace Only Once field:-
True: Replaces only the first occurrence.
-
False: Replaces all occurrences.
-
-
Click "Save" to apply changes.
-
Click "Test Step" to preview the result.
-
Go to the Outputs tab to view the modified text.
Example Result:
-
Input:
"apple, banana, apple"
-
Pattern:
"apple"
-
Replacement:
"orange"
-
Replace Only Once:
false
-
Output:
"orange, banana, orange"