MatchesEmail
constructor(code: String = DEFAULT_CODE, severity: ValidationIssueSeverity = ValidationIssueSeverity.Error, regex: Regex = EMAIL_REGEX)(source)
Parameters
code
Issue code to use when the string is not empty and does not match regex.
severity
Severity of the issue emitted when the string is not empty and does not match regex.
regex
Email regular expression that the string must match, defaults to EMAIL_REGEX.