Re: Re: Regex for telephone numbers

From: Date: Thu, 30 Dec 2010 23:36:58 +0000
Subject: Re: Re: Regex for telephone numbers
References: 1 2 3  Groups: php.db php.general 
Request: Send a blank email to php-general+get-310403@lists.php.net to get a copy of this message
On Thu, Dec 30, 2010 at 14:07, Ethan Rosenberg <ethros@earthlink.net> wrote: > > Josh - > > I used use \d{3}-\d{3}-\d{4}. > > It works beautifully!! Just keep in mind that invalid numbers will also pass that check, such as 000-000-0000 or 123-456-6789. That's why my example was a bit more involved. -- </Daniel P. Brown> Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/

« previous php.general (#310403) next »