RE: [PHP] Regex for telephone number
| From: | Jason Murray | Date: | Mon, 15 Jan 2001 22:14:39 +0000 |
| Subject: | RE: [PHP] Regex for telephone number | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34702@lists.php.net to get a copy of this message | ||
> Can someone help me out with a regex to validate a phone number?
That's a tough one, because 555-5555 is just as valid as 1-800-BILLME.
And here in Australia we have 131166 (yes, all you Aussies, that *IS*
Pizza Hut's number... I couldn't think of any others :))
The best you can really do is make sure that its over a certain length.
Jason
--
Jason Murray
jasonm@melbourneit.com.au
Web Design Team, Melbourne IT
Fetch the comfy chair!