Well i’m currently trying to use a regex, but it didn’t do what i want.
It’s a username regex validation :
var $validate = array(
'nom' => array(
'regex_nom' => array(
'rule' => '/^[A-Za-zÉÈÊËÜÛÎÔÄÏÖÄÇéèëêüûçîôâïöäa]+$/',
'message' => 'Nom incorrect.'
)
)
);
Well i don’t think it’s needed to explain what i want, but the problem is that when i enter, for instance : Tesédsf it didn’t match and i dunno why…
Try this regexp
/^\p{L}+$/u. It checks for words in every language in UTF-8 string.