Is it possible to merge these two regular expressions?
/^[A-Za-z]\S{3,30}$//^(?:(\w)(?!\1\1))+$/
I would like a string of:
- only letters,
- length between 3 and 30,
- no spaces,
- no to the repetition of the same letter more than two consecutive times (e.g: 'ddd' //false, 'dtdddyyt' //false, 'dtddyyt'//true).