I have multiple Text Parsers and would like to combine them into a single flow. Using an Aggregator doesn’t work. Does anyone have any tips for me?
Welcome to the Make community!
You can use the built-in function replace
, which is “chainable”, or “nestable”.
e.g.:
replace(replace(replace(replace(replace(replace(1.text; "find1"; "replace1"); "find2"; "replace2"); "find3"; "replace3"); "find4"; "replace4"); "find5"; "replace5"); "find6"; "replace6");
For more information, see the function documentation in the Help Center.
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —
General
- Help Center | Tutorials
- Make Academy – learn Make and get your certificate
- Discord Server – join us in live chat for fans of Make!
Help Center Basics
- Mapping – What is mapping? What can I map?
- Mapping with arrays – How to map items in an array
- Aggregate an array for mapping complex fields
- Tokens for
parseDate
| Tokens forformatDate
- HTTP modules – Make a request, Get (download) a file
- Webhooks – Error Handling, Responding to webhooks
Articles & Videos
- Router Magic Formula - YouTube
- Error Handlers in Make - YouTube playlist
- Getting started with OpenAI
- How to use Regex in Make
Partner & Custom Apps
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!
Hello. In this example, a phone number is supposed to be changed, and when I use your example, the number does not change. In the photo, there is a number where the output should actually start with +49. Do you have any idea what I need to change?
You’ll need to actually select the replace function from the variables panel.
Or manually type them out so that they can auto “convert” into the function
Or type {{
before and }}
after the above, like this:
{{ replace(replace(replace(replace(replace(replace(1.text; "find1"; "replace1"); "find2"; "replace2"); "find3"; "replace3"); "find4"; "replace4"); "find5"; "replace5"); "find6"; "replace6") }}
I strongly suggest doing the Make Academy if you haven’t yet.
- Make Academy – learn Make and get your certificate
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!
Module Export
You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.
-
Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.
-
Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.
Click to Expand Module Export Code
JSON - Copy and Paste this directly in the scenario editor
{
"subflows": [
{
"flow": [
{
"id": 115,
"module": "util:SetVariable2",
"version": 1,
"parameters": {},
"mapper": {
"name": "output",
"scope": "roundtrip",
"value": "{{replace(replace(replace(replace(replace(replace(\"find1 find2 find3 find4 find5 find6\"; \"find1\"; \"replace1\"); \"find2\"; \"replace2\"); \"find3\"; \"replace3\"); \"find4\"; \"replace4\"); \"find5\"; \"replace5\"); \"find6\"; \"replace6\")}}"
},
"metadata": {
"designer": {
"x": 1582,
"y": -835
},
"restore": {
"expect": {
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "name",
"type": "text",
"label": "Variable name",
"required": true
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
},
{
"name": "value",
"type": "any",
"label": "Variable value"
}
],
"interface": [
{
"name": "output",
"label": "output",
"type": "any"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}