Replace String or List String
This node lets you search and replace data within a string with Regex.
Imagine you want to build a dynamic URL that will open the Business Manager of a business that you have selected. We will need to replace the id in the template with a business manager id of a selected business. Take a look at the example below to understand better how you can use it:
Example
If you’d like to replace a string for each object of a list use the Replace list string node.
Input Fields
field | schema | explanation |
data | any | Input data that needs to be modified. |
schema | schema_id | Select a schema which fits the data that needs to be modified. |
pointer | pointer | If you input a JSON object, specify a path to the string that needs to be modified. |
regex | string | Input the regex to the part of the string that needs to be modified. You can find a quick reference to regex here. |
value | string | If you want to replace an existing value with a new value, input the new value in this field. |
Output Fields
field | schema | explanation |
data | any | Outputs data with a modified string. |
Did this answer your question?
😞
😐
🤩
Last updated on October 11, 2022