find consecutive letters in a string:
console.log('aaaa bbbbb cccccc dd'.match(/([a-z])\1{3,}/g));
// ["aaaa", "bbbbb", "cccccc"]
// using \1 to refer to matched content in the first parentheses
find consecutive letters in a string:
console.log('aaaa bbbbb cccccc dd'.match(/([a-z])\1{3,}/g));
// ["aaaa", "bbbbb", "cccccc"]
// using \1 to refer to matched content in the first parentheses