adding regex support to matchRoute