I have problem with removing params from url starting on ":". I have example path like:
/foo/:some_id/bar/:id
I would like to archive following result:
/foo/bar
I tried to create some regex. I figured out this:
\/:.*?\/
But this one removes :some_id but still It leaves :id part. Can you tell me how I can modify my regex to remove all params?
/. iterate through items. if it doesnt start with:, append it.