Hello List, The code below of coarse will count all characters in the string $string
$string = "4556jhkl";
$count = $string =~ tr/a-zA-Z0-9//;
How would I go about only allowing numbers and letters of the alpahbet?
if ( $string =~ /\dw/)) {
print "Only letters and numbers allowed: NO SPECIAL CHARACTERS!";
else {
print "You did it?";
}
Does this look correct to any one?
Regards,
Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
