in reply to Repeat Chars in Password

if (lc($p)=~( /(.)\1{2}/ )) {