For some time I\'ve been trying to understand regular expressions in JavaScript, but it is extremely complicated. You could tell me how do I redeem separately each of the values
I don't know if this answers your question, but what you're trying to achieve is best done with split:
var parts = "/first/middle/last".split("/");
var first = split[1];
var middle = split[2];
var last = split[3];
Note that index would start at 0, but that will contain anything before the first occurrence of the split string. In your example, that would just be an empty string, since the string starts with a slash.