mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2026-09-10 23:21:15 +02:00
Merge pull request #1382 from knw257/patch-1
Added [:print:] class to character classes
This commit is contained in:
@@ -19,7 +19,7 @@ description: |
|
|||||||
### Character classes
|
### Character classes
|
||||||
|
|
||||||
| Pattern | Description |
|
| Pattern | Description |
|
||||||
| -------- | ------------------------------------ |
|
| ------------- | ---------------------------------------- |
|
||||||
| `.` | Any character, except newline |
|
| `.` | Any character, except newline |
|
||||||
| `\w` | Word |
|
| `\w` | Word |
|
||||||
| `\d` | Digit |
|
| `\d` | Digit |
|
||||||
@@ -30,6 +30,7 @@ description: |
|
|||||||
| `[abc]` | Any of a, b, or c |
|
| `[abc]` | Any of a, b, or c |
|
||||||
| `[a-e]` | Characters between `a` and `e` |
|
| `[a-e]` | Characters between `a` and `e` |
|
||||||
| `[1-9]` | Digit between `1` and `9` |
|
| `[1-9]` | Digit between `1` and `9` |
|
||||||
|
| `[[:print:]]` | Any printable character including spaces |
|
||||||
| `[^abc]` | Any character except `a`, `b` or `c` |
|
| `[^abc]` | Any character except `a`, `b` or `c` |
|
||||||
|
|
||||||
### Anchors
|
### Anchors
|
||||||
|
|||||||
Reference in New Issue
Block a user