diff --git a/contributing-guides/style-guide.md b/contributing-guides/style-guide.md index c07a624102..a946cd1898 100644 --- a/contributing-guides/style-guide.md +++ b/contributing-guides/style-guide.md @@ -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` `` diff --git a/pages/common/glob.md b/pages/common/glob.md new file mode 100644 index 0000000000..27682a8a72 --- /dev/null +++ b/pages/common/glob.md @@ -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: . + +- 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}}]`