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
![Notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fef43a5c5-0fc5-432a-877f-5b1badf7239c%2FUntitled.png?table=block&id=c5b57388-26d6-4a6f-bb9d-bec45f1e7f5e&cache=v2)
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