I want to use the pattern which is the regular expression to be matched with..
but can you help me???
Posted 13 May 2010 - 08:52 AM
Posted 13 May 2010 - 09:08 AM
array('username', 'match', 'pattern'=>'/^[A-Za-z0-9_]+$/', 'message'=>'Invalid username!'),
Posted 13 May 2010 - 09:27 AM
andy_s, on 13 May 2010 - 09:08 AM, said:
array('username', 'match', 'pattern'=>'/^[A-Za-z0-9_]+$/', 'message'=>'Invalid username!'),
array('CODICE_FISCALE','match', 'pattern'=>'/^[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]$/', 'message'=>'Codice Errato!')
Posted 13 May 2010 - 10:23 AM
kitty10, on 13 May 2010 - 09:27 AM, said:
array('CODICE_FISCALE','match', 'pattern'=>'/^[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]$/', 'message'=>'Codice Errato!')
'allowEmpty'=>false,
This post has been edited by tri: 13 May 2010 - 10:36 AM
Posted 13 May 2010 - 11:12 AM
kitty10, on 13 May 2010 - 10:44 AM, said:
Posted 14 May 2010 - 04:46 AM
tri, on 13 May 2010 - 11:12 AM, said:
array('CODICE_FISCALE','match', 'pattern'=>'/^[A-Za-z]{6}[0-9]{2}[A-Za-z]{1}[0-9]{2}[A-Za-z]{1}[0-9]{3}[A-Za-z]{1}$ /', 'message'=>'Codice Errato!','allowEmpty'=>false),
Posted 14 May 2010 - 05:20 AM
kitty10, on 14 May 2010 - 04:46 AM, said:
array('CODICE_FISCALE','match', 'pattern'=>'/^[A-Za-z]{6}[0-9]{2}[A-Za-z]{1}[0-9]{2}[A-Za-z]{1}[0-9]{3}[A-Za-z]{1}$ /', 'message'=>'Codice Errato!','allowEmpty'=>false),