Bu doğru bir yöntemdir ....
if(strtolower($pass) == '/\d{3}/') { form_error($form, t('Passwords cannot contain sequences of 3 or more of the same character.')); }
Plz Bazı biri bana yardımcı ...