I cant express how handy this little javascript is. If you ever need to parse a URL and get something out of it, this is a groovy little script that will do the trick.

Try it out.