optimize the route regex