title: Using Regex with react router
body: <p>I want to have a route like mysite.com/hotel-newyork-123 in react using react router. 
  The regular expression is <strong>/.+-.+-\d/g</strong>. Now i want the same to be implemented in react app. I searched tutorials but i didnt find a simple implementation of regex.Please post a working code.</p>