Regular Expressions

Prev Next

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 for a list of field descriptions and types.

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.

Regex03.png

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

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

Use the \ symbol to escape special characters only in query strings using regular expressions.