title: expressjs any way to test if url pattern match in programmatic way?
body: <p>I want to perform something similar like this for expressjs pattern</p>
  
  <pre><code>isMatch([expressjs_pattern], [path_string])
  
  EX:
  isMatch('/users/:userId/roles/:roleCode/$', '/users/123/roles/admin/')
  //    result = true
  </code></pre>
  
  <p>Anyway to do like this?</p>