Some syntax sugar. Would be cool, if express would parse RegEx’s as a part of routing paths.
Eveything in the braces should be parsed as a RegEx. That way more complex, but sweetend, paths could be built. 🙂
I know, that you can pass in RegEx’s as a path, but then you’ll end up with
req.params as an array.
Yeah or No? Maybe I’ll make a PR.