Validate
QuantConnect.Util.Validate
Bases: Object
Provides methods for validating strings following a certain format, such as an email address
RegularExpression
Bases: Object
Provides static storage of compiled regular expressions to preclude parsing on each invocation
EMAIL_DOMAIN_NAME
EMAIL_DOMAIN_NAME: Regex = ...
Matches the domain name in an email address ignored@
EMAIL
EMAIL: Regex = ...
Matches a valid email address address@sub.domain.com Pattern sourced via msdn: https://docs.microsoft.com/en-us/dotnet/standard/base-types/how-to-verify-that-strings-are-in-valid-email-format
email_address
email_address(email_address: str) -> bool
Validates the provided email address
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
email_address
|
str
|
The email address to be validated |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the provided email address is valid. |