- github: izzergh
- github: kolapsys
- github: samtrion
-updated: 2019-11-14
+updated: 2020-03-10
description: |
Basic cheatsheets for regular expression
---
### Character classes
-| Pattern | Description |
-| -------- | ------------------------------------ |
-| `.` | Any character, except newline |
-| `\w` | Word |
-| `\d` | Digit |
-| `\s` | Whitespace |
-| `\W` | Not word |
-| `\D` | Not digit |
-| `\S` | Not whitespace |
-| `[abc]` | Any of a, b, or c |
-| `[a-e]` | Characters between `a` and `e` |
-| `[1-9]` | Digit between `1` and `9` |
-| `[^abc]` | Any character except `a`, `b` or `c` |
+| Pattern | Description |
+| ------------- | ---------------------------------------- |
+| `.` | Any character, except newline |
+| `\w` | Word |
+| `\d` | Digit |
+| `\s` | Whitespace |
+| `\W` | Not word |
+| `\D` | Not digit |
+| `\S` | Not whitespace |
+| `[abc]` | Any of a, b, or c |
+| `[a-e]` | Characters between `a` and `e` |
+| `[1-9]` | Digit between `1` and `9` |
+| `[[:print:]]` | Any printable character including spaces |
+| `[^abc]` | Any character except `a`, `b` or `c` |
### Anchors