use multiplex regex to implement routing