public override void Validate(object value) {
ValidatorUtils.HelperParamValidation(value, typeof(string));
if (value == null) {
return;
}
Match match = _regex.Match((string)value);
if (!match.Success) {
throw new ArgumentException(SR.GetString(SR.Regex_validator_error, _expression));
}
}
}