getMatch() method and tests for RegexRoute