change reg expression handling