Add pattern -> regex transformation