An error occurred during search results load.
Regex mask is a text pattern format based on regular expressions. It is supported wherever a glob or assembly mask is supported.
Regex mask should start with ^
and end with $
characters.
The rest of the syntax follows the usual regular expression syntax.
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.
Table 7.6. Regex mask examples
Regex Mask | Description |
---|---|
^.*$
| Matches any string, including an empty string |
^ABC.*$
| Matches any string starting with "ABC" |
^.*DEF$
| Matches any string ending with "DEF" |
^ABC.*DEF$
| Matches any string starting with "ABC" and ending with "DEF" |
^ABCDEF$
| Matches "ABCDEF" string exactly |
^ABC.$
| Matches any string containing four characters and starting with "ABC" |
^.$
| Matches any string containing a single character |
^.+$
| Matches any non-empty string |