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: https://parabola.io/flow/55408/builder

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!

Seb

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

You could copy this string:

parabola:cb:d5f015a2f76743aaafdfc69a4aed1bae

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!

3 Likes