This function is used in the Router$invoke()
method to match middleware paths to request paths.
.matchPath(pattern, path, ...)
String pattern to parse. (A middleware path.)
Path to match to. (A request path.)
Additional parameters passed to regexpr()
.
A List with information on matching paths and URL parameters.