regex validator: fixed behavior according to the documentation
regex validator: fixed behavior according to the documentation

Flags are now handled correctly, with ECMA pattern taking precedence

beregond/jsonmodels