Given URL that may contain zero or many "ID-segments" (a segment that contains `_` character), i.e.:

```
/v1/customer/cus_id/cards/card_id

```

what would be a regex that can find & replace all these segments with predefined string (`[^/]+` in my case), so that end result would look like this:

```
/v1/customer/[^/]+/cards/[^/]+

```