mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
glob: add page and add term to style guide (#23163)
This commit is contained in:
@@ -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` ``
|
||||
|
||||
@@ -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}}]`
|
||||
Reference in New Issue
Block a user