I'm trying to trim a test string to retain a number from the middle. The number has varying amounts of digits.
So
/courses/12345/users/69565/usage?page=3&per_page=100
Becomes...
69565
The number in the middle will always be preceded by '/users/' and followed by '/usage'.
Any suggestions will be gratefully received.
Best,
DHB