JS cocok dengan string nomor apapun
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'