I need to check the name to conform to the following conventions: valid names are comprised of only alphanumeric characters(a-z A-Z and 0-9) plus the characters '-', '_', and '.'. Names must begin with a letter.
someone told me to use this
$name =~ /\A[a-zA-Z][\w.-]*\z/;
but it treat "s@--__" and "s!!!@@@___" to valid which should be invalide name, casue \w in perl include @ and ! and punction sign, Any hints on this?
Thanks,
--Whatluo
In reply to how to state this by REL by whatluo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |