Find & Replace - Trim URL to Root Domain

Hi guys,

I am trying to figure out how to reduce a URL to its root domain via find & replace. I managed to remove the protocol and www etc but can’t figure out how to remove the url slug and the / after the root domain.

There is an example flow here:

It seems to use a find & replace pattern “/(.*)” which I tried but it just doesnt work. Also the UI seems to look different to what I see in my flow.

Any idea on how to do this effectively? Thanks!


Hey @Sebastian_Schaeffer! Looks like that Recipe is using our old Find/Replace step.

You could copy this string:


And then open your flow’s canvas, and paste with Command+V or Ctrl+V and it will paste the original Find/Replace step for you to connect to your flow, “/(.*)” and all.

Alternatively, my recommendation would be that you use the new RegEx step!

Your step settings would look like this:

Connect your current Find/Replace step to the RegEx step and you should be good to go.

Hope that helps!