My url will look like this:
http://www.example.com/category/action
How can I get the word \"action\". This last part of the url (after the last forward slash
Or the regex way:
var lastPart = url.replace(/.*\//, ""); //tested in FF 3
OR
var lastPart = url.match(/[^/]*$/)[0]; //tested in FF 3