allows optional path segments: "(/categories/:category_id)?/posts/:id"