Fossil SCM
With examples split into their own list, switch back to compacted bullet lists.
Commit
8ce3e9a66daa2db311e0aec655a3780d3ca2a49dc8a3696094ec29b8b499ea81
Parent
2df14399e6b13bb…
1 file changed
-13
-13
| --- www/globs.md | ||
| +++ www/globs.md | ||
| @@ -58,51 +58,38 @@ | ||
| 58 | 58 | Special character sequences have some additional features: |
| 59 | 59 | |
| 60 | 60 | * A range of characters may be specified with `-`, so `[a-d]` matches |
| 61 | 61 | exactly the same characters as `[abcd]`. Ranges reflect Unicode |
| 62 | 62 | code points without any locale-specific collation sequence. |
| 63 | - | |
| 64 | 63 | * Include `-` in a list by placing it last, just before the `]`. |
| 65 | - | |
| 66 | 64 | * Include `]` in a list by making the first character after the `[` or |
| 67 | 65 | `[^`. At any other place, `]` ends the list. |
| 68 | - | |
| 69 | 66 | * Include `^` in a list by placing anywhere except first after the |
| 70 | 67 | `[`. |
| 71 | - | |
| 72 | 68 | * Beware that ranges in lists may include more than you expect: |
| 73 | 69 | `[A-z]` Matches `A` and `Z`, but also matches `a` and some less |
| 74 | 70 | obvious characters such as `[`, `\`, and `]` with code point |
| 75 | 71 | values between `Z` and `a`. |
| 76 | - | |
| 77 | 72 | * Beware that a range must be specified from low value to high |
| 78 | 73 | value: `[z-a]` does not match any character at all, preventing the |
| 79 | 74 | entire glob from matching. |
| 80 | - | |
| 81 | 75 | * Note that unlike typical Unix shell globs, wildcards (`*`, `?`, |
| 82 | 76 | and character lists) are allowed to match `/` directory |
| 83 | 77 | separators as well as the initial `.` in the name of a hidden |
| 84 | 78 | file or directory. |
| 85 | 79 | |
| 86 | 80 | |
| 87 | 81 | Some examples of character lists: |
| 88 | 82 | |
| 89 | 83 | * `[a-d]` Matches any one of `a`, `b`, `c`, or `d` but not `ä`; |
| 90 | - | |
| 91 | 84 | * `[^a-d]` Matches exactly one character other than `a`, `b`, `c`, |
| 92 | 85 | or `d`; |
| 93 | - | |
| 94 | 86 | * `[0-9a-fA-F]` Matches exactly one hexadecimal digit; |
| 95 | - | |
| 96 | 87 | * `[a-]` Matches either `a` or `-`; |
| 97 | - | |
| 98 | 88 | * `[][]` Matches either `]` or `[`; |
| 99 | - | |
| 100 | 89 | * `[^]]` Matches exactly one character other than `]`; |
| 101 | - | |
| 102 | 90 | * `[]^]` Matches either `]` or `^`; and |
| 103 | - | |
| 104 | 91 | * `[^-]` Matches exactly one character other than `-`. |
| 105 | 92 | |
| 106 | 93 | White space means the ASCII characters TAB, LF, VT, FF, CR, and SPACE. |
| 107 | 94 | Note that this does not include any of the many additional spacing |
| 108 | 95 | characters available in Unicode, and specifically does not include |
| 109 | 96 |
| --- www/globs.md | |
| +++ www/globs.md | |
| @@ -58,51 +58,38 @@ | |
| 58 | Special character sequences have some additional features: |
| 59 | |
| 60 | * A range of characters may be specified with `-`, so `[a-d]` matches |
| 61 | exactly the same characters as `[abcd]`. Ranges reflect Unicode |
| 62 | code points without any locale-specific collation sequence. |
| 63 | |
| 64 | * Include `-` in a list by placing it last, just before the `]`. |
| 65 | |
| 66 | * Include `]` in a list by making the first character after the `[` or |
| 67 | `[^`. At any other place, `]` ends the list. |
| 68 | |
| 69 | * Include `^` in a list by placing anywhere except first after the |
| 70 | `[`. |
| 71 | |
| 72 | * Beware that ranges in lists may include more than you expect: |
| 73 | `[A-z]` Matches `A` and `Z`, but also matches `a` and some less |
| 74 | obvious characters such as `[`, `\`, and `]` with code point |
| 75 | values between `Z` and `a`. |
| 76 | |
| 77 | * Beware that a range must be specified from low value to high |
| 78 | value: `[z-a]` does not match any character at all, preventing the |
| 79 | entire glob from matching. |
| 80 | |
| 81 | * Note that unlike typical Unix shell globs, wildcards (`*`, `?`, |
| 82 | and character lists) are allowed to match `/` directory |
| 83 | separators as well as the initial `.` in the name of a hidden |
| 84 | file or directory. |
| 85 | |
| 86 | |
| 87 | Some examples of character lists: |
| 88 | |
| 89 | * `[a-d]` Matches any one of `a`, `b`, `c`, or `d` but not `ä`; |
| 90 | |
| 91 | * `[^a-d]` Matches exactly one character other than `a`, `b`, `c`, |
| 92 | or `d`; |
| 93 | |
| 94 | * `[0-9a-fA-F]` Matches exactly one hexadecimal digit; |
| 95 | |
| 96 | * `[a-]` Matches either `a` or `-`; |
| 97 | |
| 98 | * `[][]` Matches either `]` or `[`; |
| 99 | |
| 100 | * `[^]]` Matches exactly one character other than `]`; |
| 101 | |
| 102 | * `[]^]` Matches either `]` or `^`; and |
| 103 | |
| 104 | * `[^-]` Matches exactly one character other than `-`. |
| 105 | |
| 106 | White space means the ASCII characters TAB, LF, VT, FF, CR, and SPACE. |
| 107 | Note that this does not include any of the many additional spacing |
| 108 | characters available in Unicode, and specifically does not include |
| 109 |
| --- www/globs.md | |
| +++ www/globs.md | |
| @@ -58,51 +58,38 @@ | |
| 58 | Special character sequences have some additional features: |
| 59 | |
| 60 | * A range of characters may be specified with `-`, so `[a-d]` matches |
| 61 | exactly the same characters as `[abcd]`. Ranges reflect Unicode |
| 62 | code points without any locale-specific collation sequence. |
| 63 | * Include `-` in a list by placing it last, just before the `]`. |
| 64 | * Include `]` in a list by making the first character after the `[` or |
| 65 | `[^`. At any other place, `]` ends the list. |
| 66 | * Include `^` in a list by placing anywhere except first after the |
| 67 | `[`. |
| 68 | * Beware that ranges in lists may include more than you expect: |
| 69 | `[A-z]` Matches `A` and `Z`, but also matches `a` and some less |
| 70 | obvious characters such as `[`, `\`, and `]` with code point |
| 71 | values between `Z` and `a`. |
| 72 | * Beware that a range must be specified from low value to high |
| 73 | value: `[z-a]` does not match any character at all, preventing the |
| 74 | entire glob from matching. |
| 75 | * Note that unlike typical Unix shell globs, wildcards (`*`, `?`, |
| 76 | and character lists) are allowed to match `/` directory |
| 77 | separators as well as the initial `.` in the name of a hidden |
| 78 | file or directory. |
| 79 | |
| 80 | |
| 81 | Some examples of character lists: |
| 82 | |
| 83 | * `[a-d]` Matches any one of `a`, `b`, `c`, or `d` but not `ä`; |
| 84 | * `[^a-d]` Matches exactly one character other than `a`, `b`, `c`, |
| 85 | or `d`; |
| 86 | * `[0-9a-fA-F]` Matches exactly one hexadecimal digit; |
| 87 | * `[a-]` Matches either `a` or `-`; |
| 88 | * `[][]` Matches either `]` or `[`; |
| 89 | * `[^]]` Matches exactly one character other than `]`; |
| 90 | * `[]^]` Matches either `]` or `^`; and |
| 91 | * `[^-]` Matches exactly one character other than `-`. |
| 92 | |
| 93 | White space means the ASCII characters TAB, LF, VT, FF, CR, and SPACE. |
| 94 | Note that this does not include any of the many additional spacing |
| 95 | characters available in Unicode, and specifically does not include |
| 96 |