returnruleBuilder.SetValidator(newRegularExpressionValidator("^[-_a-z0-9.]+$",RegexOptions.IgnoreCase)).WithMessage("must be valid Host without http://");
returnruleBuilder.Must(x=>HostRegex.IsMatch(x)||x.IsValidIpAddress()).WithMessage("must be valid Host without http://");
returnruleBuilder.SetValidator(newRegularExpressionValidator("^https?://[-_a-z0-9.]+",RegexOptions.IgnoreCase)).WithMessage("must be valid URL that starts with http(s)://");
returnruleBuilder.Must(x=>x.IsValidUrl()&&x.StartsWith("http",StringComparison.InvariantCultureIgnoreCase)).WithMessage("must be valid URL that starts with http(s)://");