develooper Front page | perl.perl6.language | Postings from March 2005

Re: Phone numbers and form fields

Thread Next
From:
Juerd
Date:
March 3, 2005 13:24
Subject:
Re: Phone numbers and form fields
Message ID:
20050303212408.GL18358@c4.convolution.nl
Michael G Schwern skribis 2005-03-03 16:21 (-0500):
> I see this all the time.  Phone numbers.  Credit card numbers.  Postal codes.
> I mean, christ.  $input =~ s/\D+//g;

Phone numbers: don't strip a prefixed +.

Postal codes: if it's international, don't strip anything. My postal
code is 3316 GG, including the single space.


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About