The first checks what the entire filename consists of, and the second checks the leading letter. There are endless variations on the same idea.$f =~ /^[\w\.]+$/ && $f =~ /^\w/
In reply to Re: Regex to detect file name
by Anonymous Monk
in thread Regex to detect file name
by lirc201
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |