Skip to content

Commit

Permalink
bracket expression details
Browse files Browse the repository at this point in the history
  • Loading branch information
glennj committed Aug 27, 2024
1 parent 72a09f5 commit 8900bea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions concepts/quoting/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ The glob wildcard characters are:
</summary>
* `[abc]` matches exactly one character that is either an `a` or a `b` or a `c`.
* to include a literal close bracket in the expression, make it the first character after the opening bracket (after an optional `^`)
* `[][]` is a bracket expression that will match either a close or an open bracket.
* `[x-y]` matches exactly one character that is in the _range_ from `x` to `y`
* to include a literal hyphen character in a character set, it must be either the first (after an optional `^`) or the last
* `[-xy]` or `[xy-]` each match exactly one character that is an `-` or a `x` or a `y`
* to include a literal hyphen character in a character set, it must be either the first character after the opening bracket (after an optional `^`) or the last character before the closing bracket.
* `[-xy]` or `[xy-]` each match exactly one character that is an `-` or a `x` or a `y`
* multiple ranges can be specified, for example `[0-9A-Fa-f]` matches a hexadecimal digit
* `[^abc]` matches exactly one character that is **NOT** an `a` or a `b` or a `c`,
* `[^x-y]` matches exactly one character that is **NOT** in the range from `x` to `y`
Expand Down

0 comments on commit 8900bea

Please sign in to comment.