en.javascript.info/9-regular-expressions/09-regexp-quantifiers/1-find-text-manydots/solution.md
2019-09-06 16:50:41 +03:00

209 B

Solution:

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

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