7.5. Glob Mask
Glob mask is a text pattern format that uses wildcard characters. It is supported by the following features:
The list of available wildcard characters is presented in the table below:
Table 7.2. The list of available wildcard characters
Matches a single character
Matches any number of characters, including zero
Wildcard characters are combined into a string to form a glob mask with the desired properties. See the examples.
When a glob mask starts with
^ and ends with
$ characters, it is switched to a more advanced regex mask mode.
Glob mask is case-sensitive.
Table 7.3. Glob mask examples
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 string containing one or more characters