Router: Add custom arguments to RegEx matches

If the user wants to define some of the arguments in the URL and some manually, this change makes that work.