Apply REGEXP_REPLACE twice:
REGEXP_REPLACE(REGEXP_REPLACE(mystr, r'^[^\d]+', ''), r'/.*$', '')
Explanation
The inner call removes all leading non-digits, the outer call removes the suffix after the id. ^ and $ are so-called anchors and do not represent a character but the abstract (0-length) notions of 'beginning / end of the test string'.
This will work in all common regex flavors and engines.
The solution hinges on the numerical id constituting a location segment in the url.
Note that the approach is fragile: eg. it will fail for urls with a port number.
80483987any different than any other number(s) ? No use trying to help you if you can't answer the question that is the core.