Importing Regular Expressions via a TSV File
In this section, we will guide you through the process of importing regular expressions using a TSV (Tab-Separated Values) file and integrating them into the PDLP. We'll cover the basics of preparing your TSV file for regular expressions and the steps to import them effectively into the PDLP.
Structure of the TSV File
Only UTF-8 file encoding is supported.
Each regular expression should be represented on a single line. The format of each line could be:
- <NAME> <TAB> <RegEX>
- <RegEX>
NAME: Should not exceed 64 characters and may contain alphanumeric characters and underscores ([a-zA-Z0-9_]).
- If the NAME is not provided, a default will be generated in the format: CUSTOM_FILE_REGEX_<line number>.
SEPARATOR: A TAB character will be used
REGULAR EXPRESSION: Everything following the TAB character is treated as the regular expression. If the NAME and TAB are not present, the entire line will be considered as the regular expression.
Enabling Importing Regular Expression
Policies > Workflow rules > "Workflow name" > Proactive DLP > Check for regular expressions > Load regular expressions from file

Let's discuss each section and provide an example:
- Regular expression file: Path to TSV formatted regular expression file
- In the event of an error, non-compliance with the specified format, or incorrect regex, the engine will fail. Please consult the engine logs to determine if there are any errors in the file you provided.
These are the current limitations related to TSV custom regex feature.
Max TSV file size: 500 * 1024 byte (~500 Kb)
Max TSV line number: 255 Line
Max TSV Line characters: 300 character (Name length + tabulator + regex length)
Max regex Name length: 64 character
Below is an example of a regular expressions file you can use