Speedfreak has asked for the wisdom of the Perl Monks concerning the following question:
What I need to check is that:
The string is exactly 4 characters long, not one more, not one less. It must only contain numbers and letters. Also, there is a high chance the string will arrive in lowercase and I need to convert it to uppercase before my script can use it.
I need to redirect the user to an error page if the string was invalid rather than continue running the script.
Can anyone help me with this one?
- Jed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String validation
by chromatic (Archbishop) on Mar 24, 2000 at 21:19 UTC | |
|
Re: String validation
by btrott (Parson) on Mar 25, 2000 at 02:22 UTC | |
by chromatic (Archbishop) on Mar 25, 2000 at 02:25 UTC | |
by btrott (Parson) on Mar 25, 2000 at 02:36 UTC | |
|
Re: String validation
by turnstep (Parson) on Mar 30, 2000 at 03:50 UTC |