Improved path matcher to get named paramters from url based on paths.