what of the method of regular expression returns array of all the matches with the Regular expression? js 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'