Remove the "https://www." from an URL

One of the modules of my scenario only works with domains, not URLs, so I need to get an URL and remove the “https://www.” from the beginning and the “/” from the end in order to make it work.

How can I do this?

Hi @checkstore sounds like you need to use a substring function. I had a similar situation where I needed to remove the file extension from file names. I was able to put something together after watching a tutorial posted on this channel: Integromat Tutorial: How to Use the Integromat SubString Function with 4 Example Use Cases - YouTube

I’m not affiliated with them. Just good information there and was super helpful to me. :slight_smile:

Here’s the help doc on the substring function: String Functions Help Docs | Integromat Help Center

1 Like

Hey @checkstore ,

Good question! Take a look at Regex, it’s very powerful:

Hope that helps you!
~Bjorn

1 Like

I’ve used

(?<=www.).*$

So a URL like this “https://www.checkstore.com.br” became this “checkstore.com.br”

2 Likes

I usually use the replace function for this

{{replace(“www.website”; “www.”; “”)}}