Phone number validation

From: Date: Sun, 07 Apr 2002 01:52:45 +0000
Subject: Phone number validation
Groups: php.general 
Request: Send a blank email to php-general+get-91898@lists.php.net to get a copy of this message
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

« previous php.general (#91898) next »