Trim link to domain name only

How can I get the url to be trimmed down to only the root domain name, like the screenshot shows.

At the same time, when I click on the highlighted domain name that has been cut, it will jump to the specific webpage.


Hi there @artpnp01,

You should be able to use the :extract operator to extract the domain.

thanks for your suggestion.
If I use regex to extract the main domain name, when I click on the url, I will only go to the main domain name and cannot point to the real url.

I need it to look like this: xxxx.com
But the actual jump is:
xxxx.com/xaxadsad/dasdas

Use the link element?

It is a way, but link element can’t be put into text element, I still wanna show the link in text element.

Use This url:split by / #item number

Before you split find and replace https:// or http:// with nothing.

This topic was automatically closed after 70 days. New replies are no longer allowed.