Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a9710c4

Browse files
rarkinspull[bot]
authored andcommittedNov 5, 2024
docs: add additional glob matching examples (#30416)
1 parent 8cfd38c commit a9710c4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
 

‎docs/usage/string-pattern-matching.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,15 @@ If you need a case-sensitive pattern you must use a regex pattern.
8181

8282
### Example glob patterns
8383

84-
| Pattern | Glob pattern explanation |
85-
| -------- | --------------------------------------- |
86-
| `abc123` | matches `abc123` exactly, or `AbC123` |
87-
| `abc*` | matches `abc`, `abc123`, `ABCabc`, etc. |
84+
| Pattern | Glob pattern explanation |
85+
| ----------- | ------------------------------------------------------------ |
86+
| `abc123` | matches `abc123` exactly, or `AbC123` |
87+
| `abc*` | matches `abc`, `abc123`, `ABCabc`, but not `abc/def` |
88+
| `abc**/*` | matches `abc/def` but not `abc`, `abcd`, or `abc/def/ghi`, |
89+
| `abc**/**` | matches `abc/def` and `abc/def/ghi`, but not `abc` or `abcd` |
90+
| `abc{/,}**` | matches `abc`, `abcd`, `abc/def`, and `abc/def/ghi` |
91+
92+
All matches above are case-insensitive, even if not shown.
8893

8994
## Negative matching
9095

0 commit comments

Comments
 (0)
Please sign in to comment.