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

9 lines
209 B
Markdown

Solution:
```js run
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 `\.`.