Re: Regular Expression for a UK mobile phone number

From: Date: Thu, 08 Apr 2004 20:28:22 +0000
Subject: Re: Regular Expression for a UK mobile phone number
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-182908@lists.php.net to get a copy of this message
>but the regular expression still seems to reject the number... Can you provide an example of numbers it rejects? My answer was based on the simple fact that you were testing for numbers that matched, and returning a rejection based on that. The regexp is simple enough -- some examples of input where it fails would be good, perhaps in a reduced case, like: foreach($array_of_inputs_to_check as $input) printf("input: %s, matches?: %d\n", $input, check($input); --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html

« previous php.general (#182908) next »