Phone numbers and form fields

[prev] [thread] [next] [lurker] [Date index for 2005/03/03]

From: Michael G Schwern
Subject: Phone numbers and form fields
Date: 21:21 on 03 Mar 2005
To log into T-Mobile's web site you give them your phone number.  Ok.

123.456.7890

"12345678: Your phone number should be 10 digits.  For example: 1234567890"

How hard is it to strip out non-digits from input, people?!

I see this all the time.  Phone numbers.  Credit card numbers.  Postal codes.
I mean, christ.  $input =~ s/\D+//g;

Generated at 05:00 on 02 Apr 2005 by mariachi 0.52