Why doesn't react-router4 support regular matching?

The path-to-regexp used in

react-router4 supports the following modes:

var toPathRegexp = pathToRegexp.compile("/user/:id(\\d+)")

toPathRegexp({ id: 123 }) //=> "/user/123"
toPathRegexp({ id: "123" }) //=> "/user/123"
toPathRegexp({ id: "abc" }) //=> Throws `TypeError`.

but this mode is not supported in react-router4. Can you only use this / user/:id mode?


Yes,

<Route exact
    path="/test/:testId(\d+)"
    component={Test} />
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36035-2bfe2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36035-2bfe2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?