Use Regular Expressions to Validate Email Addresses

This page contains information regarding the user of regular expressions to validate email addresses in SOAP API calls.

Why Use Regular Expressions to Validate Email Addresses

By validating email addresses using regular expressions, you ensure that email addresses used in your API calls follow the correct syntax before import into Marketing Cloud Use these regular expressions to aid in achieving better data quality.

These regular expressions are subject to change. Please contact your Marketing Cloud representative if you have any questions.

How To Use Regular Expressions to Validate Email Addresses

The regular expressions below perform the following checks:

  • Ensures the email address contains only valid characters
  • Verifies the presence of a single @ character
  • Verifies that a single period character separates the domain and the domain suffix

Use the regular expressions below as part of your email validation process:

Validate Email Addresses

Validate Commented Email Addresses

Sample .NET Code

Sample PHP Code

Sample Java Code (Commented Email)