209 B
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 \.
.