in reply to Regex to detect file name
it is easy to do with two regexes, such as:
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 Section
Seekers of Perl Wisdom