Hello, I want to input a string which is used to create file name on unix. and I want to allow input string to consist of letters(A-Z, or a-z) and numbers(0-9) and underscroe( _ ) within file name.
Does anoybody know how to check the input string legal or not?
$input = "some string here";
if ($input =~ /what pattern here/) then { it is legal}
else {not legal};
Thank you very much.
Grace
---------------------------------
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
