title: URL regex matching for dynamic parameters
body: <p>I am filtering request URL in which I need to provide boolean value for regex check. I do not know whether it is possible to make such regex or I need to change URLs to follow patterns,</p>
  <p>I got confused because I need a match for two like <code>/cart/{orgSlug}/{cartNameSlug}</code> &amp; <code>/cart/{id}</code> where <code>slug name</code> must have at least one character and <code>id</code> must be only numeric.</p>
  <p>I am taking care of getting the proper URL by splitting by <code>?</code> &amp; checking request method as a preliminary test.</p>