1//This route path will match acd and abcd.
2app.get('/ab?cd', function (req, res) {
3 res.send('ab?cd')
4})
5//This route path will match abcd, abbcd, abbbcd, and so on.
6app.get('/ab+cd', function (req, res) {
7 res.send('ab+cd')
8})
9//This route path will match abcd, abxcd, abRANDOMcd, ab123cd, and so on.
10app.get('/ab*cd', function (req, res) {
11 res.send('ab*cd')
12})
13//This route path will match /abe and /abcde.
14app.get('/ab(cd)?e', function (req, res) {
15 res.send('ab(cd)?e')
16})
17//This route path will match anything with an “a” in it.
18app.get(/a/, function (req, res) {
19 res.send('/a/')
20})
21//This route path will match butterfly and dragonfly,
22//but not butterflyman, dragonflyman, and so on.
23app.get(/.*fly$/, function (req, res) {
24 res.send('/.*fly$/')
25})