goog.format.EmailAddress |
goog.format.InternationalizedEmailAddress | goog.format.EmailAddress |
opt_address
: string=
The email address.
|
opt_name
: string=
The name associated with the email address.
|
Get the email address.
Returns: string
The email address.
|
code » | ||
Get the name associated with the email address.
Returns: string
The name or personal portion of the address.
|
code » | ||
Determines is the current object is a valid email address.
Returns: boolean
Whether the email address is valid.
|
code » | ||
![]()
Set the email address.
Arguments:
|
code » | ||
![]()
Set the name associated with the email address.
Arguments:
|
code » | ||
Return the address in a standard format:
- remove extra spaces.
- Surround name with quotes if it contains special characters.
Returns: string
The cleaned address.
|
code » |
Get the next token from a position in an address string.
|
code » | |||
Checks if the character in the current position is an escaped double quote
( \" ).
|
code » | |||
Checks if the provided string is a valid address spec (local@domain.com).
|
code » | |||
Checks if the provided string is a valid email address. Supports both
simple email addresses (address specs) and addresses that contain display
names.
|
code » | |||
Checks if the provided string is a valid domain part (part after the '@') of
an email address.
|
code » | |||
Checks if the provided string is a valid local part (part before the '@') of
an email address.
|
code » | |||
Parses an email address of the form "name" <address> into
an email address.
Arguments:
Returns: !goog.format.EmailAddress
The parsed address.
|
code » | |||
Parses an email address of the form "name" <address> ("name" is
optional) into an email address.
Arguments:
Returns: !goog.format.EmailAddress
The parsed address.
|
code » | |||
Parses a string containing email addresses of the form
"name" <address> into an array of email addresses.
Arguments:
|
code » | |||
Parse a string containing email addresses of the form
"name" <address> into an array of email addresses.
Arguments:
|
code » |
![]()
A RegExp to match all backslashes. Used in cleanAddress().
|
Code » | |
![]()
A RegExp to match all double quotes. Used in cleanAddress().
|
Code » | |
![]()
Match string for closing tokens.
|
Code » | |
![]()
A RegExp to match the domain part of an email address.
|
Code » | |
![]()
A string representing the RegExp for the domain part of an email address.
|
Code » | |
![]()
A RegExp to match an email address.
|
Code » | |
![]()
A RegExp to match escaped backslashes. Used in parse().
|
Code » | |
![]()
A RegExp to match escaped double quotes. Used in parse().
|
Code » | |
![]()
A RegExp to match the local part of an email address.
|
Code » | |
![]()
A string representing the RegExp for the local part of an email address.
|
Code » | |
![]()
Match string for opening tokens.
|
Code » | |
![]()
A RegExp to check special characters to be quoted. Used in cleanAddress().
|
Code » |