#5839: Italian and France Phone Validation
-------------------------+--------------------------------------------------
Reporter: DanJones | Type: Enhancement
Status: new | Priority: Very Low
Milestone: 1.2.x.x | Component: Validation
Version: RC2 | Severity: Trivial
Keywords: | Php_version: PHP 4 >= 4.3.2
Cake_version: |
-------------------------+--------------------------------------------------
These are expressions I find to have worked for me.
{{{
case 'ita':
$this->regex =
^([+]39)?((38[{8,9}|0])|(34[{7-9}|0])|(36[6|8|0])|(33[{3-9}|0])|(32[{8,9}]))([\d]{7})$
break;
case 'fra':
$this->regex
=^0[1-6]{1}(([0-9]{2}){4})|((\s[0-9]{2}){4})|((-[0-9]{2}){4})$
break;
}}}
--
Ticket URL: <https://trac.cakephp.org/ticket/5839>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" 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/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---