Extract text (split / parse)

Hi all,
New to Make, so still learning how the different functions work. Can someone please explain how to extract the link here:


Between:
<a href="
And:
" target="_blank">Receive File


Output:

Tried following this: How to extract certain data using Regex in Make?

But unfortunately something is missing:


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!

3 Likes

hello, thank you! This is the text:

<a href="https://s3.amazonaws.com/formaloo-en/s/2024/3/4/Dp611q5w29dd49a4-2c6d-490a-95d2-ba99237c4734.pdf\" target="_blank">Receive File

Screenshot_2024-02-20_151445

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

href=\\"(?<file_url>[\w\W]+?)\\".*?>Receive File

Proof

https://regex101.com/r/ahAeju

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!

3 Likes

it worked, thank you very very much!! :sunglasses:

2 Likes

First time user here. This post is similar to what I am trying to achieve, but can’t work out how to do it. I’m trying to pull an image URL from an Etsy RSS feed, to then be used to create a photo post on instagram. Here’s the text below:

<img src=“https://i.etsystatic.com/50991663/r/il/dd21f9/5845721064/il_570xN.5845721064_lot1.jpg” border=“0”

Any help would be greatly appreciated.

Welcome to the Make community!

That looks like a new question since the pattern will differ – could you please create a separate topic for this?

While it’s tempting to hop onto an existing thread, a more effective approach would be to start a new topic just for your question. It helps community experts find and respond to your query quicker, 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:

Screenshot_2023-12-19_091207

3 Likes