Pattern: Email address
“Email address” is one of the patterns that you can select on the Match panel. Use this pattern to make a field match an email address. You can set the pattern to allow any email address, or only email addresses for specific users or specific domains.
User Names
The part of the email address before the @ sign is the user name. You can restrict it if you're only interested in certain email addresses.
- Allow any user name: Allow any valid user name.
- Basic characters only: Allow only the characters [a-z0-9._-] in the user name. Use this if you'll be passing the email address to software that has trouble with special characters.
- Specific user names only: The email address must use one of the user names in the list.
List of User Names
Type in or paste in the user names this field should allow, one per line.
This box is a full-featured text editor. You can cut, copy and paste with Ctrl+X, Ctrl+C and Ctrl+V as usual. Press Enter to insert a line break.
If the field validation mode is set to "none" or "loose", the list only determines which characters are allowed. To make the regex actually check for the whole list, set the field validation mode to "average" or "strict".
Domain Names
The part of the email address after the @ sign is the domain name. You can restrict it if you're only interested in certain email addresses.
- Allow any domain name: Allow any syntactically valid domain name. No checks are done whether the domain or even top-level domain actually exists. E.g. user@adsf.qwer will be matched, even though there is no .qwer top-level domain.
- Any domain on specific TLDs: Allow any domain name on the top-level domains in the list. Top-level domains are generic TLDs like "com", "net" and "org", and country-code domains like "us", "uk", "au", etc. When this option is selected, you can right-click on the list of domains to automatically add currently existing top-level domains.
- Any subdomain on specific domains: The email address must use one of the domain names in the list. Additional unspecified subdomains are allowed. If you specify "domain.com", then "user@domain.com", "user@mail.domain.com" and "user@pop.domain.com" are all valid.
- Specific domains only: The email address must use one of the domain names in the list. No unspecified subdomains are allowed. If you specify "domain.com", then only "user@domain.com" is valid.
Mailto: Prefix
Choose if email addresses can or must be written as mailto:user@domain.com.
- No prefix: Never allow the mailto: prefix.
- Optional prefix: Allow email addresses to be specified with or without the prefix.
- Require prefix: Require the mailto: prefix to be specified.
List of Domain Names
Type in or paste in the domain names this field should allow, one per line.
This box is a full-featured text editor. You can cut, copy and paste with Ctrl+X, Ctrl+C and Ctrl+V as usual. Press Enter to insert a line break.
If the field validation mode is set to "none" or "loose", the list only determines which characters are allowed. To make the regex actually check for the whole list, set the field validation mode to "average" or "strict".
Examples