Compatible Unicode Intrinsic Functions - IsValidEmail Method
Test whether the string contains a valid email address
Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)
Parameters
Name | Type | Data Type | Description |
|---|---|---|---|
Result | *Result (Optional) | Boolean | True if the string is a valid email |
Details
The isValidEmail method allows you test whether a string is a valid email address. This is based on the RFC5322 email standard.
- It cannot be more than 254 characters long
- It must not contain more than one @
- It must not begin with an @
- It must not begin with a period (.) and there must be at least one period in address
- It cannot have two periods next to each other
- It cannot contain a space
- It must have at least one character between the @ and period in the domain portion
- It must not end with a period