这将匹配以 /abcd 和 /abd 开头的路径: app.use('/abc?d', function (req, res, next) {
next()
})
这将匹配以 /abcd 、/abbcd 、/abbbbbcd 等开头的路径: app.use('/ab+cd', function (req, res, next) {
next()
})
这将匹配以 /abcd 、/abxcd 、/abFOOcd 、/abbArcd 等开头的路径: app.use('/ab*cd', function (req, res, next) {
next()
})
这将匹配以 /ad 和 /abcd 开头的路径: app.use('/a(bc)?d', function (req, res, next) {
next()
})
|