Tagged in

Expressjs

Sean’s Blog
Sean’s Blog
Code, Comics, and Fhqwhgads!
More information
Followers
94
Elsewhere
More, on Medium

Express route param regex validation

Recently, I came across some confusion in the Express 4.x API documentation regarding how to use regex to validation route parameters. It seems there’s been an update and the method to accomplish this differs from version 4.11 and 4.12.