I need to extract an last number from an URL followed by a dash.
Example:
http://www.example.com/p-test-test1-a-12345.html
i need to extract the 12345 using regex.
i tried this -\d(.*?).html which gives me 2345 not sure why it removes 1 any idea?
\dwould match?