>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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to