JS correspond à n'importe quel numéro de chaîne

const match = 'some/path/123'.match(/\/(\d+)/)
const id = match[1] // '123'
foloinfo