move regex to constant