OSDN Git Service

Regular updates
[twpd/master.git] / regexp.md
index ecf9fff..e46e443 100644 (file)
--- a/regexp.md
+++ b/regexp.md
@@ -8,7 +8,7 @@ authors:
   - github: izzergh
   - github: kolapsys
   - github: samtrion
-updated: 2019-11-14
+updated: 2020-03-10
 description: |
   Basic cheatsheets for regular expression
 ---
@@ -18,19 +18,20 @@ description: |
 
 ### 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