Skip to content

Commit 2b804eb

Browse files
committed
minor
1 parent f651e96 commit 2b804eb

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/05-regexp-character-sets-and-ranges

1 file changed

+1
-1
lines changed

9-regular-expressions/05-regexp-character-sets-and-ranges/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ We can use character classes inside `[…]` as well.
5858

5959
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-]`.
6060

61-
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.
61+
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).
6262

6363
## Excluding ranges
6464

0 commit comments

Comments
 (0)