Skip to main content
Version: 2024.2

7.5. Glob Mask

Glob mask is a text pattern format that uses wildcard characters. It is supported by the following features:

7.5.1. Syntax

The list of available wildcard characters is presented in the table below:

Table 7.2. The list of available wildcard characters

Wildcard

Description

?

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.

7.5.2. Behavior

Glob mask is case-sensitive.

7.5.3. Examples

Table 7.3. Glob mask examples

Glob 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 string containing one or more characters