in reply to Regex to detect file name
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/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regex to detect file name
by Laurent_R (Canon) on Jul 06, 2018 at 07:40 UTC | |
Re^2: Regex to detect file name
by Anonymous Monk on Jul 05, 2018 at 21:31 UTC | |
by Anonymous Monk on Jul 06, 2018 at 02:08 UTC | |
by Anonymous Monk on Jul 08, 2018 at 01:20 UTC |