This section describes the regular expressions used within the templates.
Operator | Matched Pattern |
\ | Quote the next metacharacter. |
^ | Match the beginning of a line. |
$ | Match the end of a line. |
. | Match any character (except newline). |
| | Alternation. |
() | Used for grouping to force operator precedence. |
[xy] | The character x or y. |
[x-z] | The range of characters between |
[^z] | Any character except z. |
Operator | Matched Pattern |
* | Match 0 or more times. |
+ | Match 1 or more times. |
? | Match 0 or 1 times. |
{n} | Match exactly n times. |
{n,} | Match at least n times. |
{n,m} | Match at least n times, but no more than m times. |
Operator | Matched Pattern |
\t | Match tab. |
\n | Match newline. |
\r | Match return. |
\f | Match formfeed. |
\a | Match alarm (bell, beep, and so on). |
\e | Match escape. |
\v | Match vertical tab. |
\021 | Match octal character (in this example, 21 octal). |
\xF0 | Match hex character (in this example, F0 hex). |
\x{263a} | Match wide hex character (Unicode). |
\w | Match word character (alphanum plus '_'). |
\W | Match non-word character. |
\s | Match whitespace character. This metacharacter also includes |
\S | Match non-whitespace character. |
\d | Match digit character. |
\D | Match non-digit character. |
\b | Match word boundary. |
\B | Match non-word boundary. |
\A | Match start of string (never match at line breaks). |
\Z | Match end of string (Never match at line breaks. Only match at the end of the final buffer of text submitted for matching.) |
Operator | Matched Pattern |
(?A^entity) | Match a previously defined entity, which is then referenced by the new entity. Referencing an entity minimizes the size and memory usage of the grammar, but decreases performance. The performance impact can vary from unnoticeable to significant depending on the size and structure of the grammar. |
The following example demonstrates how to implement a new taxonomy that will categorize a document based on a custom attribute.
Steps required for implementing a new taxonomy:
To implement a new taxonomy
For this example, a document can only have one category applied (the highest level of confidentiality), therefore, the taxonomy will should be configured as strictly ordered. |
Ensure the categories are in the desired order when you create the taxonomy, as reordering categories within a taxonomy is not supported. |
It is recommended to perform an initial test on a small amount of files to ensure the automated system works as expected. If you send a lot of files to classification, you must wait for all files to be processed by the classification system. Once started, you cannot stop it until it completes. |
© 2025 One Identity LLC. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center