glob: add page and add term to style guide (#23163)

This commit is contained in:
Managor
2026-07-13 10:27:05 +03:00
committed by GitHub
parent 3e4ccb929f
commit a200e552a7
2 changed files with 31 additions and 0 deletions
+1
View File
@@ -251,6 +251,7 @@ Some terms are used repeatedly throughout pages, and as such, should be standard
| Term | Standard | Explanation |
|---|---|---|
| Regular expression | `` `regex` `` | `regex` defines a match pattern given a string of characters (https://en.wikipedia.org/wiki/Regular_expression). |
| Glob pattern | `` `glob` `` | `glob` defines a match pattern given a string of characters (https://en.wikipedia.org/wiki/Glob_(programming)). |
| Standard input | `` `stdin` ``
| Standard output | `` `stdout` ``
| Standard error | `` `stderr` ``
+30
View File
@@ -0,0 +1,30 @@
# glob
> Glob patterns (`glob`) are patterns used to match and search text.
> Note: `glob` isn't a command, but syntax to be used with other commands or the shell.
> See also: `regex`.
> More information: <https://en.wikipedia.org/wiki/Glob_(programming)>.
- Match zero or more of any characters:
`*`
- Match any single character:
`?`
- Match one character in a set of characters:
`[{{abc}}]`
- Match ranges of characters:
`[{{a-z}}][{{3-9}}]`
- Match anything but the specified character:
`[!{{a}}]`
- Match a single character not withing a range:
`[!{{a-z}}]`