insert regex to route definition