If a match is found in a global search for a regular expression, the function returns code example
Example: js match any number string
const match = 'some/path/123'.match(/\/(\d+)/)
const id = match[1] // '123'
const match = 'some/path/123'.match(/\/(\d+)/)
const id = match[1] // '123'