app.get('/:type(discussion|page)/:id', ...)
works
More Related Contents:
- express.js – single routing handler for multiple routes in a single line
- Client on Node.js: Uncaught ReferenceError: require is not defined
- Greedy vs. Reluctant vs. Possessive Qualifiers
- RegEx: Grabbing values between quotation marks
- Error: request entity too large
- Regular Expression to match valid dates
- In regex, match either the end of the string or a specific character
- How to match numbers between X and Y with regexp?
- Regex for Comma delimited list
- What’s the regular expression that matches a square bracket?
- How does the regular expression ‘(?
- ERR_HTTP_HEADERS_SENT: Cannot set headers after they are sent to the client
- How to separate routes on Node.js and Express 4?
- Regex AND operator
- How to convert CSV to JSON in Node.js
- Cannot POST / error using express
- Print raw html strings on EJS
- Regex for alphanumeric, but at least one letter
- Microsoft office Access `LIKE` VS `RegEx`
- Unix grep regex containing ‘x’ but not containing ‘y’
- What regular expression can never match?
- Regular Expression Validation For Indian Phone Number and Mobile number
- How to get updated document back from the findOneAndUpdate method?
- Deploy Nodejs on Heroku fails serving static files located in subfolders
- Loop through asynchronous request
- How to know if user is logged in with passport.js?
- htaccess force https and redirect www to non-www, but no other subdomains
- Filtering a diff with a regular expression
- Extracting text after last period in string [duplicate]
- How to limit upload file size in express.js