Overview
This article provides writing conventions and examples for specifying regular expressions in Rule Groups for Administrators who perform the initial Setup and operational management of Email DLP.
Notes
- The content of this article is based on the product specifications as of September 2026, and is subject to change without notice.
- The Email DLP Administrator Role is required to view the actual screen or change the settings.
-
The URL of the Email DLP Users screen differs depending on your tenant.
・PC:
https://console.mo.hdems.com/#/[ メイン ドメイン ]
・Mobile:https://console.mo.hdems.com/#/m/[ メイン ドメイン ]
※ Replace [ メイン ドメイン ] with your contracted Domain. -
Email DLP uses
re2as its regular expression library. - Email DLP regular expressions are not case-sensitive.
-
For filtering based on Bcc, please refer to the following article.
[Email DLP] Filtering Based on Bcc Is Not Processed as Expected
Procedure
The expressions described in this article are used when configuring the following items.
Regular Expression Basics
When writing a regular expression, if the specified string contains any of the following characters, they must be escaped.
Characters that require escaping
.[](){}*^\|+?$
To escape a character, place a backslash \ before it.
Example:
\.zip
Regular Expression Examples
By writing the following in an Email DLP Rule Group, you can configure the conditions required for mail operations.
When a ZIP File is attached+
When a specific string is in the subject+
When there is no subject+
When the Domain is an Exact Match+
When the Domain is an Exact Match including subdomains+
When Header Cc does not contain [random string]_CC@hennge.com+
When Header Cc does not contain any of example@hennge1.com, example@hennge2.com, or example@hennge3.com+
When Header To/Header Cc contains At least one External Domain+
When Header To/Header Cc contains 2 or more types of External Domains+
When Header To/Header Cc contains 3 or more External addresses+
When Detecting Specific Auto-Forwarded Emails in Google Workspace+
Translation Disclaimer
This article has been automatically translated from the original Japanese version for your convenience.
While we strive to ensure accuracy, we cannot guarantee its reliability or completeness.
In the event of any discrepancies or questions regarding the content, the official Japanese version shall prevail.