Grouping multiple "Text Parser - replace" nodes, or alternative?

Hello, I have a scenario in which I am using a chain of 12 “Text parser - replace” modules. I use them to turn each month of the year from French language into English language to create google calendar events from emails I receive (in French).

as you can tell from my screengrab, it’s looking a bit cumbersome at the moment and I was wondering if:

  • there is a way to “group” all these modules together to clear the visual clutter a little bit when looking at the general scenario.
  • even more efficently, is there a way to do a text parser - replace with multiple entries, a bit like a dictionnary?

Thanks a lot in advance for your help! :slight_smile:



Event Calendar Résa Communauto.blueprint.json (106.1 KB)

We’d love to help, however, you have not provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario and any issue/s and/or error/s.

To allow others to assist you with your scenario, please provide the following:

1. All Relevant Screenshots

We need to see what you’re working with to give you the best advice. Screenshots are extremely important because Make is a visual editor — a picture provides us with more context.

It would help us identify the issue by having screenshots of:

  • the full scenario,
  • any error messages,
  • individual module fields,
  • relevant filter settings (conditions), and
  • each module’s output bundles
  • any external services (spreadsheet headers, sample data, regex101.com, etc.)

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

3. Module Output Bundles

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.

To provide code/text using Markdown format, you can type a code fence.
Add three backticks ``` in a separate line before and after the content, like this,

```
text goes here
```

Alternatively, you can upload your file and share the public link** —
(this method is only recommended for large files exceeding the forum upload limit)

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved, and help you with mapping the raw property names from collections.

Sharing these details will make it easier for others to assist you.

Hello again, sorry I had forgotten to attach the screengrab. I edited the original message and also added the scenario blueprint.

Thanks a lot!

You can use and chain the built-in replace function in a single Set Variable / Compose a String module.

  • replace
    replace(text; search string; replacement string)

The function may have also been covered in the Make Academy tutorials — refer to the Make Academy Course Overview for more info.

Here’s an example of how you can use the function:

{{ replace(replace(text; search; replacement); search; replacement) }}

e.g.:

{{ replace(replace(1.text; "/pattern/"; emptystring); "/pattern2/"; emptystring) }}

(copy-paste the above into the field, or type it exactly as shown)

Hope this helps! Let me know if there are any further questions or issues.

@samliew

2 Likes

Thanks a lot! I managed to make it work (didn’t even need the setVariable in the end), although it took me a while to type the whole thing with no mistakes :sob:
I tried to use a text editor but for some reason some things seemed to be getting lost along the way when pasting it back into the expression.

Do you have any tips for writing expressions, do you use a special editor?


EDIT: woops, had left a useless router here. It’s gone now.