I can't find the full pattern behind route parameters and regular expressions expressjs.
This matches:
route: exemple.com/users/123456
// Regex rule for route parameter
app.get( '^/users/:userId([0-9]{6})', function( req, res ) {
res.send( 'Route match for User ID: ' + req.params.userId );
} );
This doesn't match:
route: exemple.com/us-en
app.use('/:countryAndLanguage(\w{2}-\w{2})',homepageRouter);
What am i not seeing..