Re: Phone numbers and form fields

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

From: Tony Bowden
Subject: Re: Phone numbers and form fields
Date: 22:04 on 03 Mar 2005
On Thu, Mar 03, 2005 at 04:21:16PM -0500, Michael G Schwern wrote:
> 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;

Ah, so my postal code is now 42.

Tony

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