7.7. Regex Mask
Regex mask is a text pattern format based on regular expressions. It is supported wherever a glob or assembly mask is supported. Regex mask can be used to configure the following features:
7.7.1. Syntax
Regex mask should start with ^
and end with $
characters. The rest of the syntax follows the usual regular expression syntax. See the examples.
7.7.2. Behavior
Regex mask case-sensitivity depends on a usage context. When it is used in place of a glob mask, the regex mask is case-sensitive. When it is used in place of an assembly mask, the regex mask is case-insensitive.
7.7.3. Examples
Table 7.6. Regex mask examples
Regex Mask | Description |
---|---|
| Matches any string, including an empty string |
| Matches any string starting with "ABC" |
| Matches any string ending with "DEF" |
| Matches any string starting with "ABC" and ending with "DEF" |
| Matches "ABCDEF" string exactly |
| Matches any string containing four characters and starting with "ABC" |
| Matches any string containing a single character |
| Matches any non-empty string |