-
-
Couldn't load subscription status.
- Fork 446
Closed
Description
say i have a request with a url
/foo/123
how can I match anything except "foo" while having the first parameter be a named key?
// in js
/(?!foo).+/[0-9]+// also need the first param, but this is invalid
/(?!foo):animal/:num/dog/123 => match { animal: 'dog', num: 123 }
/cat/7893434 => match { animal: 'cat', num: 7893434 }
/foo/123 => no match { animal: null }
DavidHenri008, akhial and nvmnghia