Click or drag to resize

UrlValidationAttributeValidationPattern Field

Defines the regular expression pattern used to validate value.

Namespace: GSF.ComponentModel.DataAnnotations
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public const string ValidationPattern = "^(?:(?:[a-zA-Z][a-zA-Z0-9.+-]*:\/\/)?[a-zA-Z0-9][a-zA-Z0-9.-]*(?::[0-9]+)?(?:\/[^ "]*)?|mailto:[a-zA-Z0-9!#$%&'*+-\/=?^_`{|}~][a-zA-Z0-9!#$%&'*+-\/=?^_`{|}~.]*@[a-zA-Z0-9][a-zA-Z0-9.-]*)$"
View Source

Field Value

String
See Also