This function replaces all occurrences of a given text with a given replacement.
Bash
findReplaceAll(text, textToBeReplaced, replacement) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns: Goodbye your love, hello your friend. |
|
Bash
|
This example returns: JWT is a great tool! |
|
Bash
|
This example returns: Tha waathar is baautiful! |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any given text. |
|
|
text |
The string that should be replaced. |
|
|
text |
The replacement for all found substrings matching the |
Output
This function returns a text
If you want to use a regular expression to find the substrings that should be replaced, have a look at replaceAll().
If you want of only replace the first occurence of a substring, have a look at findReplaceFirst().
(books) Use cases and examples
| Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
|---|---|---|---|---|---|
| Translate the description |
|
Execute remote action | findReplaceAll() |