Re: Regex for telephone numbers

From: Date: Fri, 31 Dec 2010 16:47:03 +0000
Subject: Re: Regex for telephone numbers
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-310432@lists.php.net to get a copy of this message
On Fri, Dec 31, 2010 at 11:04, Per Jessen <per@computer.org> wrote: > > AFAIK, they too vary from country to country.  Swiss mobile numbers are > 07[6789] NNNNNNN, the latter usually written as NNN NN NN, but also > often in a way that will help remembering the number. > Danish mobile#s are the same as land line numbers, no area code, just > NNNNNNNN. In the US and Canada, though, there's [as of yet] no difference between landline, mobile, VOIP, fax, toll-free, premium (900), et cetera. Again, that's why I wrote out the example the way I did, which conforms to NANP (NPA/NXX) standards. It's the only suggestion so far that will work completely (which sounds cocky, but screw it, it's the last Friday of the year ;-P). -- </Daniel P. Brown> Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/

« previous php.general (#310432) next »