From 8c8dde6abbd185d2d410cb3719c7af2a511aeb84 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Thu, 10 Oct 2019 11:14:56 +0300 Subject: [PATCH] fix --- 9-regular-expressions/02-regexp-character-classes/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/02-regexp-character-classes/article.md b/9-regular-expressions/02-regexp-character-classes/article.md index dff5ecaa..ee6f2457 100644 --- a/9-regular-expressions/02-regexp-character-classes/article.md +++ b/9-regular-expressions/02-regexp-character-classes/article.md @@ -153,7 +153,7 @@ Luckily, there's an alternative, that works everywhere. We can use a regexp like alert( "A\nB".match(/A[\s\S]B/) ); // A\nB (match!) ``` -The pattern `regexp:[\s\S]` literally says: "a space character OR not a space character", that is "anything". +The pattern `pattern:[\s\S]` literally says: "a space character OR not a space character", that is "anything". This works everywhere. Also we can use it if we don't want to use `pattern:s` flag, in cases when we want a regular "no-newline" dot too in the pattern. ````