move regex to variable