change reg pattern