[ticket/13073] Use just one regex in helper route()

PHPBB3-13073