hi,
I've script where a person take a values and i will to check if the value contain no spaces, no special caracter ( "';,:*)...).
I must have juste number and letter for example
SJsjs12 : good
12ssaff : good
dds14'"12 : not good
i'v make this
but when i run my script
if the person take d120'"44 it's run but i must not run because i've '".
Thanks
I've script where a person take a values and i will to check if the value contain no spaces, no special caracter ( "';,:*)...).
I must have juste number and letter for example
SJsjs12 : good
12ssaff : good
dds14'"12 : not good
i'v make this
Code:
if ($var =~ m/^\w+\d+/){
print $var."good value\n";
}
but when i run my script
if the person take d120'"44 it's run but i must not run because i've '".
Thanks