change reg_pattern