move regex to worker