en.javascript.info/9-regular-expressions/07-regexp-quantifiers/1-find-text-manydots/solution.md
2019-04-02 14:01:44 +03:00

203 B

Solution:

let reg = /\.{3,}/g;
alert( "Hello!... How goes?.....".match(reg) ); // ..., .....

Please note that the dot is a special character, so we have to escape it and insert as \..