FWIW, In Australia, phone numbers are commonly formatted with brackets for area codes:
(03) 9876 5432 +61 (3) 9876 5432 +61 3 9876 5432 Also the usual array of +,-,.,etc I'd include ()'s in your reg exp for sure. Justin on 07/04/02 1:47 PM, Jason Cribbins ([EMAIL PROTECTED]) wrote: > Some people use period '.' in between fields...me for one. Its an old habit > I have although I forget where I picked that up from. I am sure it was when > I was working overseas...maybe Asia where I saw all phone numbers using . > between fields. > > ----- Original Message ----- > From: "Gary" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, April 06, 2002 8:52 PM > Subject: [PHP] Phone number validation > > > : Hi All, > : I tried to cut a corner and use an alphabetic validation I am using > : elsewhere > : $stuff = "/^[a-zA-Z]+$/"; > : if(preg_match($stuff, $value)) > : > : looks like I forgot about +( )- being in phone number. What is the > : easiest way to allow these 4 characters? Are there any other characters > : that people use? > : > : TIA > : Gary > : > : > : -- > : PHP General Mailing List (http://www.php.net/) > : To unsubscribe, visit: http://www.php.net/unsub.php > : > : > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php