For a URL such as this:
http://www.walmart.com/ip/0982724/some-text-here/234397280?foo=bar
How can I get a variable length number after the last slash?
I tried using this regex:
\/([0-9]+)
But it gets the first number, not the last one.
Demo: http://regex101.com/r/nU3wG2
I tried adding a dollar sign at the end, but then there were no matches.