GLOB Expression Syntax
Important: Always write GLOB in capital letters.
GLOB is a very simple syntax, similar to command line wildcards. Example of a GLOB
expression: file://blah*.{foo;bar}
matches URIs of the form
file://blah12.foo or file://blah.bar.
Possible operators are:
Operator | Description |
---|---|
* | Match zero or more characters. ‘term*’, for example, is equivalent to right truncated search. |
? | Match one character. |
[...] | Match any of the characters (set) enclosed by the brackets. Characters ‘*’ and ‘?’ are interpreted in the set as normal characters and not as wildcards. |
[!...] | Any character NOT in the set is matched. |
[.-.] | A ‘-’ between two characters denotes a range. The set [A-C], for example would match any character between A and C: namely A, B or C. |
\ | A backslash matches itself in most situations. But the character ‘\’ is also an escape. When used with wildcards or other special characters it means that the character should match itself and not have its special sematics. \*, for instance, matches ‘*’. |