Report this

What is the reason for this report?

what dose this mean When you use a regular expression for the route definition, capture groups are provided in the array using req.params[n]

Posted on November 19, 2022

hi I have been reading on the express docs and when i reached to the req.params i found this line but i did`t understand what dose it mean the line is :

When you use a regular expression for the route definition, capture groups are provided in the array using req.params[n], where n is the nth capture group. This rule is applied to unnamed wild card matches with string routes such as /file/*

can any one help mw with an example to know what dose this mean

the link on express docs are:https://expressjs.com/en/4x/api.html#req.params

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.