How do I get the link of an element?

Let's say I have a linked text on a page - how do I get its URL using the website selector and extending the snippet?

Hi,

Welcome to the Text Blaze community :partying_face:

I think something like this should work for you:

{=extractregex({selectorhere}, "href="(.+?)"")}

You can simply replace 'selectorhere' with the selector you're using. Make sure your selector has the html data type.
Screenshot 2024-02-09 at 9.19.01 AM

Though, we'll work on adding this as a native feature to the site selector.

Please let us know if you have any questions.

1 Like

Thank you! For now I've made it simpler in this particular case but I will definitely keep this in mind!

1 Like