JS coincide con cualquier cadena numérica
const match = 'some/path/123'.match(/\/(\d+)/)
const id = match[1] // '123'
foloinfo
const match = 'some/path/123'.match(/\/(\d+)/)
const id = match[1] // '123'
/sid=(.*)/