Multiple Match Pattern modules in a single scenario?

I want to extract an email address and a full name from the text of an email.
I have the working regular expressions. I noticed that I can use only the output of the first parser in the following modules.
Why does this happen?

Welcome to the Make community!

Without seeing how you’ve set up your scenario, it’s difficult to tell what’s wrong with it.

For further assistance, please provide the following:

1. Screenshots of module fields and filters, and any error messages

Please share screenshots of relevant error messages, 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:

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

3. And most importantly, Input/Output bundles

Please provide the 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”.

A.

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

B.

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

Here are two ways to format text so that it won’t be changed by the forum:

A. Type code block manually
Add three backticks ``` before and after the content/bundle, like this:

```
content goes here
```

B. Highlight and click the format button in the editor

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!

Sorry, I thought it was a general limitation.
I don’t have output bundles. I didn’t run the scenario because I simply can’t select one of the Match pattern modules outputs.

Anyway, here’s the scenario:

And here’s the blueprint:
blueprint.json (11.7 KB)

Hi @AlbertoCabasVidani,

I see what’s the issue now.

Your pattern in the second module (Full name), did not contain a “Capturing Group”.

Simply put, you need a pair of brackets in the pattern, around what you want to capture.

So change this:

 \v\b[A-Z][a-z]+\s[A-Z][a-z]+\b\R

Into this:

(\v\b[A-Z][a-z]+\s[A-Z][a-z]+\b\R)

However, it may be possible to combine BOTH email and full name extractions using a single “Match Pattern” module, saving an operation per execution.

To assist you with this, could you provide a sample output from the mailhook trigger?

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

@samliew

1 Like

Thanks!
I totally overlooked the groups. I used ChatGPT and regex101 (and my brain) to come up with a regex.

It works on regex101, not in Make. In Make it extracts the email, but not the full name.

To test it, I copied the text I got through the mailhook in make. I see it includes additional characters, it seems markdown. Is this the reason for the different results in regex101 and Make?

Anyway, the regex is:

\*Email:\* ([A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,})|^([A-Za-z]+ [A-Za-z]+)\n\n

The output of the mailhook is:

[
    {
        "date": "2024-08-06T13:19:33.278Z",
        "subject": "Fwd: New free subscriber to The Unstoppable Creator!",
        "text": "New free subscriber to The Unstoppable Creator!\n\n*Email:* bailey11120@gmail.com\n*Source:* Substack Network\n*Recommended by:* Maya Sayvanova\n<https://email.mg1.substack.com/c/eJx80DHO4yAQhuHTQBeLGUhsFxQrrXwNa4Cxg2JMBNhRbr9Kmt1m_3I0X_Ho9dR4zeVt6-GqL_HZYt4ve25xiZ4-hwxW9eh7J9lCj3gbbzdAyYniNq-8c6HGYab29wvqOsi7dcM4OMZh6AGNw6sPA3BAY0YYwxicjBYVGjUoDUYBYKc7cqMH8myU6f1CvrunR1WbU8KotEL3YTbyj87nJGOdl8JfiW3lYLnZe2vPKvQvgZPA6d-1wOlZ8hI3FjhpUMaMeEn0pkul90l7Pkno6WhprvkonoX-_f8mxdLmuLTsyVE9Y6A9CqPWD-VLq4cLOVHc7ev1ku2HvEflMsdgAQxoQC1Pi38CAAD__6KuiAk>\nfrom Smarter Solopreneurs\n<https://email.mg1.substack.com/c/eJx8kM1qwzAQhJ_GutXsSqqdHHQolLyG2V1vHBHbCvpJ6NuX5FJ6aI_DMMzHJ1R1SfkrlMZFcrzVmPa3PdV4jkLPYOYAo5WRjQYcrR2Ow4DW6EZxnRbdNVPVeaL60yK8H8wleOf54NgzDjSD8DgwEh9BYBBiHkwMFqyHAzj0gGh71xMfBUnUgx_lTNJftmuBlaHzsC3YPzErybWXtJlYpnPWF0moualZw6XWW-ncR2dPnT3hTXNJO7cSdy3l17pzp1a3qaSWRTv3-beAHGhlzTUJMZV7nGmPnYfl-fviKI3ntFHcw-PxMPUfl61onuIcED06tM7cg_0OAAD__4MAg48>\nBailey Schmidt\n\nbingusburger\nAlso subscribes to A16Z GAMES, Adjacent Possible and 53 other Substacks\n<https://email.mg1.substack.com/c/eJx8kE2O4yAQhU8Du7GKgrHjBYuRRrmGVUDhoNgm4idR377lbLo33cuq96T36fPUeM3lw9buqi_p0VI-_hy5pZg8nYcMFib0k5Ns1YQ4zuOoUPJOaVtWPrhQ47BQ-0oV_L3ImwWkaVZ8iYFnj3EaZz1riE6PzgWMWiaLgAYuoJUBpXDQA7nZK_JswEw-kh9u-73C5kAY2Fc1nJiN_H3weZepLrHwm8S20llu9tbaowr9T-BV4PV7-_wYcOlYe3W9rFyEvva2LzX34lno_z8rKJY2x6VlT47qMwU6kjCwnstvktpdyDulw75eL9l-sdkrlyUFq5RRWqGWT4ufAQAA___DKoMr>\nView dashboard\n<https://email.mg1.substack.com/c/eJx8kLGOszAQhJ8Gdz_yLiaQwsXf8BpovSxgBTCyl0T39qekOV1z5Wik-T4Nk8qS8pcvVyic46kxHf-OpHGOTO9gJm875C4Y8dAh3u63G6CRneI2LnJIJpVpJP1pwba9WT2EMLUtudaxNATz3PfEyK3DO_ZNZ030aNHZ3jbgLADWTU3hzkAszrqOZ-J63R_FbsFWzu4L1G9NJX7UnHYTyzhn-Zh4zZeYza-qZ6ma_xUOFQ66ynUUTedJYRPOQpryr40Kh_MKWyxrhcOadjHZ0xYka2IKVJ5xoiNWzi5vyodarjClneLhX6-X0T-eu4rkMU4ewEED2Jinx-8AAAD__9cXe8E>\n\nTo unsubscribe from these notifications, click here\n<https://email.mg1.substack.com/c/eJx8kM2O6yAMhZ8GdjfChpJ2weJKo75GZMBNUfNTgdNo3n6UbqarWR4dS-f7nEh4XOt3aFtsqZanlHX5t6xSbiXREXQOpsfUR80BekR_8R5Q80xlGkZeuJJwHkh-WzCns74HtD0ayCfHPvqeTMyYLdHZunhJ4L0uAQ06czYWnAHAznZ0VJTYGdenG6XuPj-amaJRzswjdAemUHp0aZ11acOt8pskSN1YT-Eu8mzK_ld4VXj9vD4ii5RlbMpeG6dDTtmvT9ema6ApcpU1UaT2KpmWopwZj433ZttiXmcqS9j3Xcsff9sa16HkAODAAlr9CvgTAAD__0nUelk>\n",
        "html": "<div dir=\"ltr\"><div class=\"gmail_quote\"><div style=\"font-kerning:auto\"><table role=\"presentation\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td><br></td><td width=\"550\" align=\"left\" style=\"font-family:system-ui,-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Roboto,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;\"><div style=\"font-size:16px;line-height:26px;margin:0 auto;max-width:550px;width:100%\"><div dir=\"auto\" style=\"font-size:16px;line-height:26px;padding:16px 0 0 0\"><table role=\"presentation\" width=\"auto\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width:100%\"><tbody><tr><td><h2 style=\"color:rgb(54,55,55);font-family:&#39;SF Pro Display&#39;,-apple-system-headline,system-ui,-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Roboto,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:30px;font-weight:700;letter-spacing:.4px;line-height:36px;list-style:none;margin:0;text-decoration:unset\">New free subscriber to The Unstoppable Creator!</h2></td></tr><tr height=\"16\"><td></td></tr><tr><td><p style=\"color:rgb(54,55,55);font-size:16px;line-height:26px;margin:0 0 20px 0;margin-bottom:0;margin-top:8px;text-align:left\"><b style=\"font-weight:600\">Email:</b> <a href=\"mailto:bailey11120@gmail.com\" target=\"_blank\">bailey11120@gmail.com</a><span></span><br style=\"display:block;line-height:22px;margin-top:8px\"><b style=\"font-weight:600\">Source:</b> Substack Network<br style=\"display:block;line-height:22px;margin-top:8px\"><b style=\"font-weight:600\">Recommended by:</b> <a href=\"https://email.mg1.substack.com/c/eJx80DHO4yAQhuHTQBeLGUhsFxQrrXwNa4Cxg2JMBNhRbr9Kmt1m_3I0X_Ho9dR4zeVt6-GqL_HZYt4ve25xiZ4-hwxW9eh7J9lCj3gbbzdAyYniNq-8c6HGYab29wvqOsi7dcM4OMZh6AGNw6sPA3BAY0YYwxicjBYVGjUoDUYBYKc7cqMH8myU6f1CvrunR1WbU8KotEL3YTbyj87nJGOdl8JfiW3lYLnZe2vPKvQvgZPA6d-1wOlZ8hI3FjhpUMaMeEn0pkul90l7Pkno6WhprvkonoX-_f8mxdLmuLTsyVE9Y6A9CqPWD-VLq4cLOVHc7ev1ku2HvEflMsdgAQxoQC1Pi38CAAD__6KuiAk\" style=\"color:rgb(54,55,55);text-decoration:underline\" target=\"_blank\">Maya Sayvanova</a> from <a href=\"https://email.mg1.substack.com/c/eJx8kM1qwzAQhJ_GutXsSqqdHHQolLyG2V1vHBHbCvpJ6NuX5FJ6aI_DMMzHJ1R1SfkrlMZFcrzVmPa3PdV4jkLPYOYAo5WRjQYcrR2Ow4DW6EZxnRbdNVPVeaL60yK8H8wleOf54NgzDjSD8DgwEh9BYBBiHkwMFqyHAzj0gGh71xMfBUnUgx_lTNJftmuBlaHzsC3YPzErybWXtJlYpnPWF0moualZw6XWW-ncR2dPnT3hTXNJO7cSdy3l17pzp1a3qaSWRTv3-beAHGhlzTUJMZV7nGmPnYfl-fviKI3ntFHcw-PxMPUfl61onuIcED06tM7cg_0OAAD__4MAg48\" style=\"color:rgb(54,55,55);text-decoration:underline\" target=\"_blank\">Smarter Solopreneurs </a></p></td></tr><tr height=\"16\"><td></td></tr><tr><td><a href=\"https://email.mg1.substack.com/c/eJx8kE2O4yAQhU8Du7GKgrHjBYuRRrmGVUDhoNgm4idR377lbLo33cuq96T36fPUeM3lw9buqi_p0VI-_hy5pZg8nYcMFib0k5Ns1YQ4zuOoUPJOaVtWPrhQ47BQ-0oV_L3ImwWkaVZ8iYFnj3EaZz1riE6PzgWMWiaLgAYuoJUBpXDQA7nZK_JswEw-kh9u-73C5kAY2Fc1nJiN_H3weZepLrHwm8S20llu9tbaowr9T-BV4PV7-_wYcOlYe3W9rFyEvva2LzX34lno_z8rKJY2x6VlT47qMwU6kjCwnstvktpdyDulw75eL9l-sdkrlyUFq5RRWqGWT4ufAQAA___DKoMr\" style=\"border:1px solid rgb(0,0,0,.1);border-radius:20px;display:block;list-style:none;padding:20px;text-align:center;text-decoration:unset\" target=\"_blank\"><table role=\"presentation\" width=\"auto\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"text-align:center;width:100%\"><tbody><tr><td><img src=\"https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack.com%2Fimg%2Favatars%2Fyellow.png\" style=\"border:none!important;border-radius:500000px;box-sizing:border-box;display:inline;height:88px;margin:0px;max-width:550px;min-height:88px;min-width:88px;object-fit:cover;vertical-align:middle;width:88px\" width=\"88\" height=\"88\"></td></tr><tr height=\"16\"><td></td></tr><tr><td><table role=\"presentation\" width=\"auto\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"text-align:center;width:100%\"><tbody><tr><td><h3 style=\"color:rgb(54,55,55);font-family:&#39;SF Pro Display&#39;,-apple-system-headline,system-ui,-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Roboto,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:24px;font-weight:600;letter-spacing:.07px;line-height:28px;list-style:none;margin:0;text-align:center;text-decoration:unset\">Bailey Schmidt</h3></td></tr><tr height=\"4\"><td></td></tr><tr><td><div style=\"color:rgb(119,119,119);font-family:system-ui,-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Roboto,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:15px;font-weight:400;letter-spacing:-.23px;line-height:20px;list-style:none;margin:0;text-align:center;text-decoration:unset\">bingusburger</div></td></tr><tr height=\"4\"><td></td></tr><tr><td><div style=\"color:rgb(119,119,119);font-family:system-ui,-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Roboto,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:15px;font-weight:400;letter-spacing:-.23px;line-height:20px;list-style:none;margin:0;text-align:center;text-decoration:unset\">Also subscribes to <span style=\"color:unset;font-family:system-ui,-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Roboto,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:15px;font-weight:600;letter-spacing:-.23px;line-height:20px;list-style:none;margin:0;text-decoration:unset\">A16Z GAMES, Adjacent Possible and 53 other Substacks</span></div></td></tr></tbody></table></td></tr></tbody></table></a></td></tr><tr height=\"16\"><td></td></tr><tr><td><table role=\"presentation\" width=\"auto\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"box-sizing:border-box;min-height:40px;padding-left:0;padding-right:0;width:100%\"><tbody><tr><td align=\"center\" style=\"background-color:rgb(255,103,25);border-radius:8px;box-sizing:border-box;min-height:40px;padding-left:0;padding-right:0;width:100%\"><a href=\"https://email.mg1.substack.com/c/eJx8kLGOszAQhJ8Gdz_yLiaQwsXf8BpovSxgBTCyl0T39qekOV1z5Wik-T4Nk8qS8pcvVyic46kxHf-OpHGOTO9gJm875C4Y8dAh3u63G6CRneI2LnJIJpVpJP1pwba9WT2EMLUtudaxNATz3PfEyK3DO_ZNZ030aNHZ3jbgLADWTU3hzkAszrqOZ-J63R_FbsFWzu4L1G9NJX7UnHYTyzhn-Zh4zZeYza-qZ6ma_xUOFQ66ynUUTedJYRPOQpryr40Kh_MKWyxrhcOadjHZ0xYka2IKVJ5xoiNWzi5vyodarjClneLhX6-X0T-eu4rkMU4ewEED2Jinx-8AAAD__9cXe8E\" style=\"border:none;border-radius:8px;box-sizing:border-box;color:rgb(255,255,255);display:inline-block;font-family:system-ui,-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Roboto,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:14px;font-weight:600;letter-spacing:-.15px;line-height:1;min-height:40px;padding:12px 24px;padding-left:0;padding-right:0;text-decoration:none;width:100%\" target=\"_blank\">View dashboard</a></td></tr></tbody></table></td></tr></tbody></table></div><div style=\"color:rgb(119,119,119);font-size:16px;line-height:26px;padding:32px 16px;text-align:center\"><p style=\"color:rgb(119,119,119);font-family:system-ui,-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Roboto,Helvetica,Arial,sans-serif,&#39;Apple Color Emoji&#39;,&#39;Segoe UI Emoji&#39;,&#39;Segoe UI Symbol&#39;;font-size:12px;line-height:20px;list-style:none;margin:0;margin-bottom:0;margin-top:8px;padding-bottom:0;text-align:center;text-decoration:unset\">To unsubscribe from these notifications, click <a href=\"https://email.mg1.substack.com/c/eJx8kM2O6yAMhZ8GdjfChpJ2weJKo75GZMBNUfNTgdNo3n6UbqarWR4dS-f7nEh4XOt3aFtsqZanlHX5t6xSbiXREXQOpsfUR80BekR_8R5Q80xlGkZeuJJwHkh-WzCns74HtD0ayCfHPvqeTMyYLdHZunhJ4L0uAQ06czYWnAHAznZ0VJTYGdenG6XuPj-amaJRzswjdAemUHp0aZ11acOt8pskSN1YT-Eu8mzK_ld4VXj9vD4ii5RlbMpeG6dDTtmvT9ema6ApcpU1UaT2KpmWopwZj433ZttiXmcqS9j3Xcsff9sa16HkAODAAlr9CvgTAAD__0nUelk\" style=\"color:rgb(119,119,119);text-decoration:underline\" target=\"_blank\">here</a></p></div></div></td><td></td></tr></tbody></table><img src=\"https://eotrx.substackcdn.com/open?token=eyJtIjoiPDIwMjQwODAzMTQwMTEyLjMuYWI5YzFhY2U0MDQ3Y2ZhYy5obWtzMGxiMEBtZzEuc3Vic3RhY2suY29tPiIsInUiOjExNDEzMTIzLCJyIjoiYWxiZXJ0b2NhYmFzdmlkYW5pQGdtYWlsLmNvbSIsImQiOiJtZzEuc3Vic3RhY2suY29tIiwicCI6bnVsbCwidCI6bnVsbCwiYSI6bnVsbCwicyI6bnVsbCwiYyI6InN1YnNjcmlwdGlvbi1ub3RpZmljYXRpb24iLCJmIjp0cnVlLCJwb3NpdGlvbiI6ImJvdHRvbSIsImlhdCI6MTcyMjY5NjYxMSwiZXhwIjoxNzI1Mjg4NjExLCJpc3MiOiJwdWItMCIsInN1YiI6ImVvIn0.7o82sFEh3LkXLHMk54NkmDsPl9LS0_km-720pAvJvGQ\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" style=\"height:1px!important;width:1px!important;border-width:0!important;margin-top:0!important;margin-bottom:0!important;margin-right:0!important;margin-left:0!important;padding-top:0!important;padding-bottom:0!important;padding-right:0!important;padding-left:0!important\"><img width=\"1px\" height=\"1px\" alt=\"\" src=\"https://email.mg1.substack.com/o/eJx8j02O6yAQhE8Tds_qBp5_FpzFaprGaSU2I8CJ5vYjZzO7WZaqSvo-pi5bqd-hnbFx1a-u5fh3lK5Zma5gUoDJ8hSNBJysHZdxRGtkJ32umxxSqUtaqf-2CP9ncw9R3ELEE9t5WTBndvPsAC1FTGPG0WiwYD3M4NADoh3cQHFhJBYPfuJMPNz3R4NnhJuHfcPhwuzEj4HLbrStucqHJPR6iqmBnlFqL0yR2ksTHXrzsF2Lz6OdMZWd9Ajv99v0P6zPJnXVFBA9OrTOvIL9CQAA__9zAmNw\"></div>\n</div></div>\n",
        "from": {
            "address": "albertocabasvidani@gmail.com",
            "name": "Alberto Cabas Vidani"
        },
        "to": [
            {
                "address": "c8c89o8mejy4cvkd50vt8abubnuu58yz@hook.eu1.make.com",
                "name": ""
            }
        ],
        "cc": [],
        "bcc": [],
        "attachments": [],
        "headers": {
            "received": "by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-dff1ccdc17bso620494276.0 for <c8c89o8mejy4cvkd50vt8abubnuu58yz@hook.eu1.make.com>; Tue, 06 Aug 2024 06:19:32 -0700 (PDT)",
            "dkim-signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722950371; x=1723555171; darn=hook.eu1.make.com; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=p7iTe2FCZtMJvmKTCFHOuUs7vm2xEbZDKt4fVEcoxvA=; b=YRBT9wzqMDwXqaApM/MtDSd3eDbUXSHcLWwxlEi8VEKe7X0fuOVhMNID6T+8U9+HYJ jnOr6J0XY0vMLolL3XymAD68vWXPg7KeRZQMGvQNANZ9f0MpVSrZgn1YvYBrYkCSyS9Q X7tWoUtdlsttwlbzdzxS78tp4rVQpxx+dBZ/xs4O7wP/Ux7oJ1ApcPXpnMgozOLs2nxP SxNliLUreWDnN0nx3dIeptv/3havjOa3C70Bw1YCsoA3mvuFNMhES71+mo11FQXD4Jni u8H97pUBF6xPWspR3GKsO/7TppNL+QGYQI6qirllDptILzrrZqWRW/L4QEPmL8pgfdeY ul6g==",
            "x-google-dkim-signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722950371; x=1723555171; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=p7iTe2FCZtMJvmKTCFHOuUs7vm2xEbZDKt4fVEcoxvA=; b=mFk9CRZRgs482Z/wx8mtGzjHv7cZk1oiHNxOqaqlyyQxhfQmZcfFELWJqDhHokFaJ8 i1NtNOIaaC0WhuNJ/nV/+kd9PPB3MkXqOaAbTDRhqzk0rzIx9LX0gSupse2ocNeAuzcY LmLlh59rguJ4xC5p3SPMmbuSMH5xX72oRBKjYihh//FEvk4zx5LLHguhCEPMuxsCOkco n8drewHl6wx+/jgedzZlY8c+8eDMt/bSE3Fn+XA3Hb8wTlIlm2lLp/1n3DeOs8H7AFTo aBzgvJSmGJyaUcgKFXBHyy/A9AFcN5kwITgpi6CipzLYn13qGpMopjG6XZVfNko5tQs0 oIYA==",
            "x-gm-message-state": "AOJu0YxNl6NYwE4/uCvXGJVAqYuHrKtlYYhOjac9kJMOfp91t/UA2JJH dwzsdDJYdq4+kvUOW0dZTNuvvR932I325zacLf1us/LUV1ZBorwauB9slXuvc4HQdJ3IHVNV0kv Yrc/eZn/ehbeURg+qk7DLt9LxH2xyqvAM",
            "x-google-smtp-source": "AGHT+IH1VY5sOokpgqYJMGhhbe4QNgkRTXrtxRBlxmqFZ1cVtDPCRRBKoPMqfqCCxWSg1eZ2pInqMT6qvCizRhKKDRI=",
            "x-received": "by 2002:a05:6902:70e:b0:e08:551f:c90f with SMTP id 3f1490d57ef6-e0bde2c194dmr20057537276.7.1722950371250; Tue, 06 Aug 2024 06:19:31 -0700 (PDT)",
            "mime-version": "1.0",
            "references": "<20240803140112.3.ab9c1ace4047cfac.hmks0lb0@mg1.substack.com>",
            "in-reply-to": "<20240803140112.3.ab9c1ace4047cfac.hmks0lb0@mg1.substack.com>",
            "from": "<albertocabasvidani@gmail.com>",
            "date": "Tue, 06 Aug 2024 13:18:54 GMT",
            "message-id": "<CAGRxg9pBaCJRcLhVWg=8fsm1dyZziPTzzreiNpqrgBqrNU9+6Q@mail.gmail.com>",
            "subject": "Fwd: New free subscriber to The Unstoppable Creator!",
            "to": "<c8c89o8mejy4cvkd50vt8abubnuu58yz@hook.eu1.make.com>",
            "content-type": "multipart/alternative; boundary=000000000000d81b18061f03a49b"
        }
    }
]

The blueprint is this:
blueprint (2).json (10.1 KB)

The full name should be Bailey Schmidt

Your regex was close.

Here’s the correct regex:

\*Email:\* (?<email>.+)\n[\w\W]+>\n(?<name>.+)\n\n

Proof: https://regex101.com/r/HnOcvR/1

Output

Screenshot_2024-08-06_210859

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

@samliew

3 Likes

Thanks. It worked.
Can you recommend a source to study the essentials of regex?

Practice and Google. That’s all I do to learn regex. No courses or tutorials needed.

If you want to get better, help others out on this forum.

It’s not that difficult :slight_smile:

The regex worked when manually forwarding emails. It failed at the first automatically forwarded one.

This is the text of the email as returned by the mailhook:

Summary

[https://eotrx.substackcdn.com/open?token=eyJtIjoiPDIwMjQwODEyMTMzODQwLjMuYWI5YzFhY2U0MDQ3Y2ZhYy40N2FzbXRoMkBtZzEuc3Vic3RhY2suY29tPiIsInUiOjExNDEzMTIzLCJyIjoiYWxiZXJ0b2NhYmFzdmlkYW5pQGdtYWlsLmNvbSIsImQiOiJtZzEuc3Vic3RhY2suY29tIiwicCI6bnVsbCwidCI6bnVsbCwiYSI6bnVsbCwicyI6bnVsbCwiYyI6InN1YnNjcmlwdGlvbi1ub3RpZmljYXRpb24iLCJmIjp0cnVlLCJwb3NpdGlvbiI6InRvcCIsImlhdCI6MTcyMzQ2OTkzNCwiZXhwIjoxNzI2MDYxOTM0LCJpc3MiOiJwdWItMCIsInN1YiI6ImVvIn0.tA-J5fqY5hfKZHmASo_ODE-d29iwBFUsiwtict9RYOA]
New free subscriber to The Unstoppable Creator!
͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏ ­͏
­͏ ­͏ ­͏ ­͏ ­

NEW FREE SUBSCRIBER TO THE UNSTOPPABLE CREATOR!

Email: sublimelemonskdp@gmail.com
Source: Substack App

[https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8365ed35-a861-4511-886b-73c16021ac4c_1728x1908.jpeg]

KATIE MCCARTHY

passportsonfire
I’ve had an enduring obsession with travel and money since I was 5. Yes, 5. I
share how how to get the most of out both - at the same time. Also, I have a
lifelong habit of doing “crazy” things that become trendy 10-20 years later.
Also subscribes to Kristina God’s Online Writing Club, Minimalist Hustler Weekly
and 16 other Substacks

Subscribe back
[Katie McCarthy | Substack]

[Katie McCarthy | Substack]

View dashboard
[Sign in to The Unstoppable Creator]

To unsubscribe from these notifications, click here
[Sign in to Substack]

[https://eotrx.substackcdn.com/open?token=eyJtIjoiPDIwMjQwODEyMTMzODQwLjMuYWI5YzFhY2U0MDQ3Y2ZhYy40N2FzbXRoMkBtZzEuc3Vic3RhY2suY29tPiIsInUiOjExNDEzMTIzLCJyIjoiYWxiZXJ0b2NhYmFzdmlkYW5pQGdtYWlsLmNvbSIsImQiOiJtZzEuc3Vic3RhY2suY29tIiwicCI6bnVsbCwidCI6bnVsbCwiYSI6bnVsbCwicyI6bnVsbCwiYyI6InN1YnNjcmlwdGlvbi1ub3RpZmljYXRpb24iLCJmIjp0cnVlLCJwb3NpdGlvbiI6ImJvdHRvbSIsImlhdCI6MTcyMzQ2OTkzNCwiZXhwIjoxNzI2MDYxOTM0LCJpc3MiOiJwdWItMCIsInN1YiI6ImVvIn0.n9ivc8EhpxvPBJWPNMKbmi_69C8ou9g_DPL_cJuDzag][https://email.mg1.substack.com/o/eJx8j8FuwyAQRL8m3GqxsC72gW-xlmXjrBqbCnCs_n3lXHrrcTQz0ntMXdZSf2I7UuOq313L_rGXrndluoLJ0QbHIRmJEJzHz3n2o5GN9LmsskulLnmh_tfiNIJ5xMkHmccgbkRk53MKgQXGxJB8cGCNRmcd2gkceD-hHfxAaWYgFrQY-E48YKC29Ye7od1WGC7MTvw1cNmMtuVe5U0Sez3E1EjPJLUXpkTtpZl2vaFdr8X70Y6Uy0a6x_M8Tf_H-mhSF80RAMGD8-YV3W8AAAD___ttYs8]

This is the regex:
*Email:* (?.+)\n[\w\W]+>\n(?.+)\n\n

It didn’t get neither the email nor the name.

If I change the first part to
Email: (?.+)\n
It gets the email.

But I wasn’t able to get the name. Any idea?

Welcome to the Make community!

Could you please create a separate topic for this?

While it’s tempting to continue an existing thread, a more effective approach would be to start a new topic. It helps other community users to respond to your query, and keeps our space organised for everyone. If you start a new conversation you are also more likely to get help from other users. You can refer others back to a related topic by including that link in your question. Thank you for understanding and keeping our community neat and tidy.

The “New Topic” link can be found in the top-right of the header:

Thanks!

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

@samliew