CONTRIB-5351 fix preg usage