From 69ebb03cca2110179e8f133298f0eead3065498e Mon Sep 17 00:00:00 2001 From: knw257 Date: Tue, 10 Mar 2020 11:28:27 -0400 Subject: [PATCH] Added [:print:] class to character classes --- regexp.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/regexp.md b/regexp.md index ecf9fffaa..3992728a7 100644 --- a/regexp.md +++ b/regexp.md @@ -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