in reply to regex to capture files that start with a lowercase letter
I want to capture *.txt files that begin with a lower-case letter.Anchor the pattern:
my @files = grep ( /^[a-z].+\.txt/, readdir($dh));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex to capture files that start with a lowercase letter
by fionbarr (Friar) on Feb 13, 2015 at 18:30 UTC |