http://mycompany.com/t5/something/bd-p/153 (I need the formula to return 153)

or

http://mycompany.com/t5/something-else/bd-p/52 (I need the formula to return 52 )

Problems I find:

- The length in characters of the urls are variable

- The numbers at the end could be 2 to 4 digits

The only reliable constant I have is that the number I need to extract at the end is always after the last "/" and there are always exactly 6 "/", if it helps.

thx in advance.