move regex to Constant