--- title: "Regular Expressions" slug: "regular-expressions-6" tags: ["Install and Get Started", "NDR 4.x", "Customer", "Network Security"] updated: 2026-11-17T09:22:39Z published: 2026-11-17T09:22:39Z canonical: "docs.trellix.com/regular-expressions-6" --- > ## 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. # Regular Expressions You can search using regular expression patterns in the query string by wrapping the term, value, or both in forward slashes. Regular expressions queries only work on fields with a string value data type and do not work on integer fields. See [Metadata Fields Definitions](/network-and-platform/docs/metadata-fields-definitions-2) for a list of field descriptions and types. > [!NOTE] > Note > > Regular expression patterns are case-sensitive. You can use a regular expression query to search the NDR index for **doc_values_type** with any lowercase character A through Z that can be either 1, 2, or 3 characters by using the steps defined in the [Entering Queries.](/network-and-platform/docs/entering-queries-2) ![Regex03.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-724eccfa-0020-361e-1ac6-8b4964a9753d(4).png?sv=2026-02-06&spr=https&st=2026-11-19T12%3A50%3A30Z&se=2026-11-19T13%3A50%3A30Z&sr=c&sp=r&sig=3v0B%2FkYtR1d28ZLHcO3vkb2s9ODf0GmiU58VDYpPnwA%3D) To search the NDR index for **doc_values_type** with any uppercase character A through Z that can be either 1, 2, 3, or 4 characters, enter the following query: ![Regex04.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-d29c3d10-6199-e842-80f2-a329dc945634(4).png?sv=2026-02-06&spr=https&st=2026-11-19T12%3A50%3A30Z&se=2026-11-19T13%3A50%3A30Z&sr=c&sp=r&sig=3v0B%2FkYtR1d28ZLHcO3vkb2s9ODf0GmiU58VDYpPnwA%3D) ### Escaping Special Characters NDR supports escaping special characters that are part of the regular expression query syntax. The special characters are: **+ - && || ! ( ) { } [ ] ^ “ ~ * ? : \** To escape these characters, use the **\** (backslash) before the character. For example, to search for **(1+1):2** use the query: **\(1\+1\)\:2**. > [!NOTE] > Note > > Use the **\** symbol to escape special characters only in query strings using regular expressions.