I am trying to extract an article ID from the following href:
/MarketUpdate/Pricing/9352730
I just want to extract the ID at the end of the string and am using the following code:
var $newsLink = $(this).attr('href');
var $newsString = $newsLink.substr($newsLink.lastIndexOf('/'));
However this returns the final '/' which i do not want.