Extract data from a array text parser

hello every one, i am getting a result from a text parser using a regex but i didn’t yet suceed to extract it from the Array aggregator, i would want to get the zip code which is not always at the same place any one has a idea?

When reaching out for assistance with your regex pattern for a Text Parser module, it would be super helpful if you could share the actual text you’re trying to match. Screenshots of text can be a bit tricky, so if you could copy and paste the text directly here, that would be awesome! It ensures we can run it against test patterns effectively. If there’s any sensitive info, feel free to change it to something fictional yet still valid by keeping the format intact.

Providing clear text examples saves time on both ends and helps us give you the best possible solution. Without proper examples, we might end up playing a guessing game, and nobody wants that as it is a waste of time! You are more likely to get a correct answer faster. So, help us help you by sharing those text snippets. Thanks a bunch!

2 Likes

yes no problem, it’s this adresse that i have send trough the regex : 41 Rue Larrepunte 64200 Biarritz

You can try using another Text Parser “Match Pattern” module with this Pattern (regular expression):

(?<zip>\d{4,})(?=\s\w+|$)

Proof https://regex101.com/r/3SLhsh

Screenshot_2024-04-13_080433

Important Info

  • :warning: Global match must be set to NO!
2 Likes

thanks the regex is working but now i have to get it from the array aggraygator

Put the Text Parser after your aggregator and use the built-in function first with the array variable from the aggregator

e.g.:

{{ first(1.array) }}

2 Likes

i don’t see exactly how do you see that.

I also don’t get what you meant by “i have to get it from the array”, so further information is required.

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

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

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

1 Like