I am not too good with Regular Expressions in Javascript. Does anyone know an efficient way to capture the last portion of a URL???
I have the following URL:
<
You don't need a regular expression; just use lastIndexOf method:
lastIndexOf
var developerID = url.substr(url.lastIndexOf("/") + 1);