Home : General : Perl Programming :

General: Perl Programming: Re: [Lee] Validate Input: Edit Log

Here is the list of edits for this post
Re: [Lee] Validate Input
zip code is easy..

=~ /^\d{5}$/

....what format should the phone number be in?

You can use Email::Valid to check emails or a simple regex is:

=~ /^\S+@\S+\.\S+$/

Last edited by:

Paul: Jul 26, 2002, 9:15 AM

Edit Log: