Notromda has asked for the wisdom of the Perl Monks concerning the following question:
I'm sure there are a lot of regex's that could do the job, and I've written a few myself, but is there any collection somewhere?
For example, it might be nice to do:
and so on. Some functions are easy, some are more involved. Would this pass taint checking? Is there something like this already out there?print "good" if isEmail($email); print "good" if isCurrency($price); print "good" if isDate($date); print "good" if isPhoneNumber($phone); print "good" if isPrintable($input);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple Data Cleaning and Verification
by DamnDirtyApe (Curate) on Nov 07, 2002 at 22:49 UTC | |
|
Re: Simple Data Cleaning and Verification
by Zaxo (Archbishop) on Nov 07, 2002 at 23:16 UTC | |
|
Re: Simple Data Cleaning and Verification
by waswas-fng (Curate) on Nov 07, 2002 at 22:51 UTC | |
|
Re: Simple Data Cleaning and Verification
by perrin (Chancellor) on Nov 07, 2002 at 22:50 UTC | |
|
Re: Simple Data Cleaning and Verification
by adrianh (Chancellor) on Nov 08, 2002 at 11:48 UTC |