http://qs321.pair.com?node_id=1217998


in reply to Regex to detect file name

it is easy to do with two regexes, such as:
$f =~ /^[\w\.]+$/ && $f =~ /^\w/
The first checks what the entire filename consists of, and the second checks the leading letter. There are endless variations on the same idea.