Email Addresses

The Protector stage library includes the following category functions for email addresses. You can use these functions only in stages included in the Protector stage library.

EMAIL:domain()
Returns the domain of email addresses. The domain is everything after the @ symbol.
Return type: String
For example, when evaluating myname@mydomain.com, this function returns mydomain.com.
EMAIL:domainTLD()
Returns the top level domain (TLD) of the email address. The TLD is the last part of the domain, such as com, gov, or org.
Return type: String.
For example, when evaluating myname@mydomain.com, this function returns com.
EMAIL:domainWithoutTLD()
Returns the domain without the TLD part of the email address.
Return type: String.
For example, when evaluating myname@mydomain.com, this function returns mydomain.
EMAIL:localPart()
Returns the local part of email addresses. The local part is everything before the @ symbol.
Return type: String.
For example, when evaluating myname@mydomain.com, this function returns myname.
EMAIL:std()
Returns the email address in the following standard format:
<local part>@<domain>
such as: name@company.com.
Return type: String.
For example, when evaluating myname@mydomain.com, this function returns myname@mydomain.com.