For example, if I have these strings, is there any way I can get 123 of all these strings, or 777 or 888?
https://www.example.com/any/123/
and
https://www.example.com/any/777/123/
and
https://www.example.com/any/777/123/888
What I mean is how to match the first or second or the third last number in the string.