n6sdk.regexes

This module contains several regular expression objects (most of them are used in other parts of the n6sdk library).

n6sdk.regexes.CC_SIMPLE_REGEX = <_sre.SRE_Pattern object>

Two-character country code.

Used by n6sdk.data_spec.fields.CCField.

n6sdk.regexes.DOMAIN_ASCII_LOWERCASE_REGEX = <_sre.SRE_Pattern object>

Domain name – with the underscore character allowed (as life is more eventful than RFCs, especially when it comes to maliciously constructed domain names).

Used by n6sdk.data_spec.fields.DomainNameField and n6sdk.data_spec.fields.DomainNameSubstringField.

n6sdk.regexes.DOMAIN_ASCII_LOWERCASE_STRICT_REGEX = <_sre.SRE_Pattern object at 0x23617a0>

Domain name – more strict (hopefully RFC-compliant) variant.

n6sdk.regexes.EMAIL_SIMPLIFIED_REGEX = <_sre.SRE_Pattern object>

E-mail address (very rough validation).

Used by n6sdk.data_spec.fields.EmailSimplifiedField.

n6sdk.regexes.IBAN_REGEX = <_sre.SRE_Pattern object>

International Bank Account Number.

Used by n6sdk.data_spec.fields.IBANSimplifiedField.

n6sdk.regexes.IPv4_ANONYMIZED_REGEX = <_sre.SRE_Pattern object at 0x2410990>

Anonymized IPv4 address.

Used by n6sdk.data_spec.fields.AnonymizedIPv4Field.

n6sdk.regexes.IPv4_CIDR_NETWORK_REGEX = <_sre.SRE_Pattern object at 0x240c2d0>

IPv4 network specification in CIDR notation.

Used by n6sdk.data_spec.fields.IPv4NetField.

n6sdk.regexes.IPv4_STRICT_DECIMAL_REGEX = <_sre.SRE_Pattern object at 0x2400cb0>

IPv4 address in decimal dotted-quad notation.

Used by n6sdk.data_spec.fields.IPv4Field.