Removed unnecessary groups in the regex, close #2
e.g. access with match[1] instead of match[6]
Also replaced anonymous urlParser object with constructor