Move regex to worker.