Skip to content

Commit

Permalink
Update 02-24-glob.md
Browse files Browse the repository at this point in the history
  • Loading branch information
whinc authored Apr 13, 2024
1 parent b984e88 commit 16608fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/blog/2020/02-24-glob.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ src/a.js src/b.js
| `?` | 匹配 1 个字符 | `?at` | `cat`, `bat` | `at` |
| `[abc]` | 匹配括号内字符集合中的单个字符 | `[cb]at` | `cat`, `bat` | `at`, `bcat` |
| `[a-z]` | 匹配括号内字符范围中的单个字符 | `[a-z]at` | `aat`, `bat`, `zat` | `at`, `bcat`, `Bat` |
| `[^abc]``[!abc]` | 匹配括号内字符集合中的单个字符 | `[cb]at` | `cat`, `bat` | `at`, `bcat` |
| `[^a-z]``[!a-z]` | 匹配括号内字符范围中的单个字符 | `[a-z]at` | `aat`, `bat`, `zat` | `at`, `bcat`, `Bat` |
|`[^abc]``[!abc]`|匹配非括号内字符集合中的单个字符|`[!CB]at`|`cat`, `bat`|`Cat`, `Bat`|
|`[^a-z]``[!a-z]`|匹配非括号内字符范围中的单个字符|`[!A-Z]at`|`aat`, `bat`, `zat`|`Aat`, `Bat`, `Zat`|

> 在 bash 命令行中`[!abc]`需要转义成`[\!abc]`
Expand Down

0 comments on commit 16608fd

Please sign in to comment.