--- title: "Create a definition based on an advanced pattern" slug: "create-a-definition-based-on-an-advanced-pattern" tags: ["Product Usage", "DLP 11.12.x"] updated: 2026-09-09T08:08:33Z published: 2026-09-09T08:08:33Z canonical: "docs.trellix.com/create-a-definition-based-on-an-advanced-pattern" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Create a definition based on an advanced pattern Advanced patterns are used to define classifications. An advanced pattern definition can consist of a single expression or a combination of expressions and false positive definitions. Advanced patterns are defined using regular expressions (regex). > [!NOTE] > Note > > There is no equivalent to the **Percentage match** and **Number of bytes from the beginning** options in Trellix DLP Network. 1. In ePO - On-prem, select **Menu** → **Data Protection** → **Classification**. 2. Select the **Definitions** tab, then select **Advanced pattern** in the left pane. To view only the user-defined advanced patterns, deselect **Include Built-in items**. User-defined patterns are the only patterns that can be edited. The available patterns appear in the right pane. 3. Select **Actions** → **New Item**. 4. Enter a name and optional description. 5. Under **Matched Expressions**: 1. Enter an expression in the text box and add an optional description. 2. Select a validator from the drop-down list or if validation is not appropriate for the expression, select **No Validation**. A *validator* is the same as *algorithm* in Trellix DLP 9.3.x. Use it to minimize false positives. 3. Enter a number in the **Score** field to indicate the weight of the expression in threshold matching. 4. Click **Add**. 6. Under **Ignored Expressions**: 1. Enter an expression in the text box. If you have text patterns stored in an external document, copy them into the definition with **Import Entries**. 2. In the **Type** field, select **RegEx** from the drop-down list if the string is a regular expression, or **Keyword** if it is text. Keyword expressions can also be added using **Import Keywords**, entering keywords separated by a new line. 3. Click **Add**. 7. Add the count to the concept: 1. Give all the expressions a score of 1. 2. When you assign the dictionary to the classification, give the threshold the same value that the count setting had in Trellix DLP 9.3.x. 3. Select **count multiple occurrence of each match string** if the score must be added for multiple occurrences of a single expression in a document. 4. Select **count each match string only one time** if the score should not be added and should be one even when multiple occurrences of a single expression are present in a document. 5. Select **start with** and **end with** to see if the document starts or ends with the expression, or select both options to find the expression anywhere in the document. 6. To match the number of lines from the beginning of the document, you can create a new regular expression using conditions such as less than, equals, or greater than. 8. Click **Save**.