I'm not very good at reading regex so will that string support domestic numbers only or international too ?
Grant. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of rubo77 Sent: Friday, November 03, 2006 7:05 AM To: Cake PHP Subject: more validate options i added another validate option to the scripts/bake.php script: line 421: $prompt .= "6- VALID_TELEPHONE\n"; line 443: case '6': $validate[$field['name']] = 'VALID_TELEPHONE'; break; and in app/app_model.php: define('VALID_TELEPHONE', '/^[\(\+0][\/\(\)0-9 \-]+$/'); if you have more ideas for more validate options post them here --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
