Skip to main content

regex

regex(regex: string | RegExp,message: string): Validator

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
regexstring | RegExp
Additional properties for advanced use cases
PropertiesTypeDescription
messagestring