regex applied in addition and editing