Fix issue in routing where subsequent requests are not matched.

Replace regex exec method with string match.
The problem is that exec modifies the state of the regexp object,
and attempts to match after the first fail.