Multiple Text Parser to one Flow

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 Basics

Articles & Videos

Partner & Custom Apps

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

1 Like

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.

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like

Module Export

You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.

  1. Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block
    Screenshot_2024-01-17_200117

  2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.

  3. 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
    }
}
1 Like