Modify Validator parseRule to allow regex with commas
cleaning up code.