Matching routes with hyphens in react-router
问题 I have URLs like this; http://0.0.0.0/country/bosnia-and-herzegovina-644 This is my Route declaration <Route path="/country/:countrySlug-:countryId" component={CountryPage} /> So this doesnt work as the hyphen breaks it, how can I change it so I only extract the last hyphen as the param, I don't really want to change my slug generation system to use a different character as these are the most readable IMHO, but are only used for information, not content loading. Thanks 回答1: I don't know if