BigBadDave
Programmer
Ho do I only match these chars: [a-z][A-Z][0-9] Regards
David Byng
davidbyng@hotmail.com
David Byng

davidbyng@hotmail.com
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sub Legal {
my $str = $_[0];
if ($str =~ /^[_A-Za-z0-9]+$/) {
return 1;
}
return 0;
} # Legal chars
if (Legal ("hello_world")) {
print "Legal string";
}
sub Legal {
my $str = $_[0];
if ($str =~ /^[_A-Za-z0-9]+$/) {
return 1;
}
return 0;
} # Legal chars