Match matching groups in a regular expression.
Normalize the given path string, returning a regular expression.
An empty array should be passed, which will contain the placeholder key names. For example "/user/:id" will then contain ["id"].
Generated using TypeDoc
Code adapted from path-to-regexp.
Source: https://github.com/pillarjs/path-to-regexp/tree/v0.1.7 Raw: https://raw.githubusercontent.com/pillarjs/path-to-regexp/v0.1.7/index.js
Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)