From 2b804eb3c6c855a01136967009f96d8ad1b8d044 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Mon, 20 May 2019 10:03:27 +0300 Subject: [PATCH] minor --- .../05-regexp-character-sets-and-ranges/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/05-regexp-character-sets-and-ranges/article.md b/9-regular-expressions/05-regexp-character-sets-and-ranges/article.md index 6a9182b8..7204f2b1 100644 --- a/9-regular-expressions/05-regexp-character-sets-and-ranges/article.md +++ b/9-regular-expressions/05-regexp-character-sets-and-ranges/article.md @@ -58,7 +58,7 @@ We can use character classes inside `[…]` as well. For instance, we want to match all wordly characters or a dash, for words like "twenty-third". We can't do it with `pattern:\w+`, because `pattern:\w` class does not include a dash. But we can use `pattern:[\w-]`. -We also can use a combination of classes to cover every possible character, like `pattern:[\s\S]`. That matches spaces or non-spaces -- any character. That's wider than a dot `"."`, because the dot matches any character except a newline. +We also can use several classes, for example `pattern:[\s\S]` matches spaces or non-spaces -- any character. That's wider than a dot `"."`, because the dot matches any character except a newline (unless `s` flag is set). ## Excluding ranges