# Find & Replace - Trim URL to Root Domain

**URL:** <https://community.parabola.io/t/find-replace-trim-url-to-root-domain/397>\
**Category:** Ask a question\
**Created:** [April 24, 2020, 5:30pm UTC](https://community.parabola.io/t/find-replace-trim-url-to-root-domain/397 "2020-04-24T17:30:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Schaeffer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/sebastian_schaeffer/32/967_2.png) [@Sebastian\_Schaeffer](https://community.parabola.io/u/Sebastian_Schaeffer)\
**Post date:** [April 24, 2020, 5:30pm UTC](https://community.parabola.io/t/find-replace-trim-url-to-root-domain/397/1 "2020-04-24T17:30:22Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![jp](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/jp/32/20_2.png) [@jp](https://community.parabola.io/u/jp)\
**Post date:** [April 24, 2020, 5:47pm UTC](https://community.parabola.io/t/find-replace-trim-url-to-root-domain/397/2 "2020-04-24T17:47:50Z")

</div>

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

You could copy this string:

```auto
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:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/parabola/original/1X/0521f661442f73b6ffb631ad5cd68a2ef9d2b2e4.png)

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

Hope that helps!
