What I need is to be able to pull the route data out of the MVC URL. I found this solution on SO, however it doesn't suit my needs because I need access to two segments not just one:
var URL = "http://www.xzy.com/AMS/Audit/Agency/Blah";
var number = URL.match(/(\d+)$/g);
This regex code grabs the last segment "Blah". How would I grab "Agency" as well? Considering the last two segments being words.