> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chronosphere.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Glob syntax

<Note>
  Regular expression syntax and glob syntax are not interchangeable. Chronosphere
  Observability Platform supports only one of these query matching patterns in
  supported areas of the product. For example,
  [drop rules](/control/shaping/shape-metrics/rules/drop-rules#create-a-drop-rule) support glob
  syntax, whereas [recording rules](/control/shaping/shape-metrics/rules/recording) support
  regular expression syntax.
</Note>

Glob patterns specify sets of filenames with wildcard characters. The most common
wildcards are `*`, `?`, and `[ ... ]`. You can negate any pattern by prefixing it with a
`!`.

<Note>
  Observability Platform glob syntax doesn't support using two asterisks where one of
  them is in the middle of a string. For example, `*k8s*staging` isn't valid.
</Note>

| Wildcard | Description                                                                   | Example                             | Matches                                                                            | Doesn't match                                                  |
| :------- | :---------------------------------------------------------------------------- | :---------------------------------- | :--------------------------------------------------------------------------------- | :------------------------------------------------------------- |
| `*`      | Matches any number of any characters, including none.                         | `Law\*`<br />`\*Law\*`<br />`L\*aw` | `Law`, `Laws`, or `Lawyer`<br />`Law`, `GrokLaw`, or `Lawyer`<br />`Law` or `Laaw` | `GrokLaw`, `La`, or `aw`<br />`La` or `aw`<br />`La` or `Laws` |
| `?`      | Matches any single character.                                                 | `?at`                               | `Cat`, `cat`, `Bat`, or `bat`                                                      | `at`                                                           |
| `[abc]`  | Matches one character given in the bracket.                                   | `\[CB]at`                           | `Cat` or `Bat`                                                                     | `cat`, `bat`, or `CBat`                                        |
| `[a-z]`  | Matches one character from the (locale-dependent) range given in the bracket. | `Letter\[0-9]`                      | `Letter0`, `Letter1`, `Letter2`, up to `Letter9`                                   | `Letters`, `Letter`, or `Letter10`                             |
| `{a,b}`  | Matches one word given in the braces.                                         | `\{pass,word}`                      | `pass`, `word`                                                                     | `password`, `passing`                                          |

*Table sourced from [Wikipedia](https://en.wikipedia.org/wiki/Glob_\(programming\)).*

For more pattern matching specifics, see the
[Glob primer](https://github.com/isaacs/node-glob#glob-primer).
