This commit is contained in:
Ilya Kantor 2019-10-10 11:07:47 +03:00
parent aee2bd2ca6
commit 74efc83650

View file

@ -100,7 +100,7 @@ let str = "+7(903)-123-45-67";
alert( str.replace(/\D/g, "") ); // 79031234567 alert( str.replace(/\D/g, "") ); // 79031234567
``` ```
## A dot is any character ## A dot is "any character"
A dot `pattern:.` is a special character class that matches "any character except a newline". A dot `pattern:.` is a special character class that matches "any character except a newline".