""" =start a quote (thisway i dont nee need to expand " with \" makes it easier to read)
So now the regexp looks like this:
.(-r )./(.*)";
.=any character
*any amount
() group
Ok soe it reads find any amount of character up untill -r space then find any amount of any characters that ends with / then take a group of anything that is ending with ";
Now threes a trick:
.* if greedy (a nongreedy variant looks like this .?), which means if you have the affronted ./ it goes ahead and matches the whole rest of the string and starts going backwards for example:
a/b/c/d
it goes ahead and does something like this:
take all, does that have a / after it, nope. Well lets take a/b/c/ does that have / after it, nope. Erll howabout a/b/c is it followed by / yes. ok so thats it im done.
Groups of () go into matches so group 0 is the whole match if any 1 is the first () group 2 is the second 3 is the third an so on.