Lean  $LEAN_TAG$
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
QuantConnect.Util.Validate.RegularExpression Class Reference

Provides static storage of compiled regular expressions to preclude parsing on each invocation More...

Static Public Attributes

static readonly Regex EmailDomainName = new Regex(@"(@)(.+)$", RegexOptions.Compiled, MatchTimeout)
 Matches the domain name in an email address ignored@[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 More...
 
static readonly Regex Email = new Regex(@"^(?("")("".+?(?<!\\)""@)|(([0-9a-z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-z])@))(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-z][-0-9a-z]*[0-9a-z]*\.)+[a-z0-9][\-a-z0-9]{0,22}[a-z0-9]))$", RegexOptions.IgnoreCase | RegexOptions.Compiled, MatchTimeout)
 Matches a valid email address addre.nosp@m.ss@s.nosp@m.ub.do.nosp@m.main.nosp@m..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 More...
 

Detailed Description

Provides static storage of compiled regular expressions to preclude parsing on each invocation

Definition at line 87 of file Validate.cs.

Member Data Documentation

◆ EmailDomainName

readonly Regex QuantConnect.Util.Validate.RegularExpression.EmailDomainName = new Regex(@"(@)(.+)$", RegexOptions.Compiled, MatchTimeout)
static

Matches the domain name in an email address ignored@[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

Definition at line 96 of file Validate.cs.

◆ Email

readonly Regex QuantConnect.Util.Validate.RegularExpression.Email = new Regex(@"^(?("")("".+?(?<!\\)""@)|(([0-9a-z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-z])@))(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-z][-0-9a-z]*[0-9a-z]*\.)+[a-z0-9][\-a-z0-9]{0,22}[a-z0-9]))$", RegexOptions.IgnoreCase | RegexOptions.Compiled, MatchTimeout)
static

The documentation for this class was generated from the following file: