Need to extract URL from Gmail Email Body

Hi Everyone,

I’m brand new to make.com and already stuck! Can someone please help!

I have a watch Gmail Module to monitor emails based on a subject. When the email comes in, I would like to extract the URL from the body:

"Here are some new listings in the area that I thought you may like to view. Please let me know if you would like to see any of these properties.

Follow this link to see the page:

https://www.realestatemls.com/link.html?1tq3edfo534dfdih,15,1,52117

This link will no longer be available after 4/25/2024.
Clicking to view the listings in this email confirms you want to receive new listing updates."

The domain will Always be realestatemls.com, so I need that whole URL to use in a http module to extract data from it.

Thanks!
Francois

Welcome to the Make community!

Screenshot_2024-02-20_151445

You can use a Text Parser “Match Pattern” module with this Pattern (regular expression):

https:\/\/www\.realestatemls\.com\/link\.html\?[\w,]+

Proof

https://regex101.com/r/hj2ZXT

Important Info

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

For more information, see Text Parser in the Make Help Center:

Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression (aka regex or regexp), which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.

Hope this helps!

2 Likes

Thank you! I appreciate the help!

2 Likes