![]() |
|
more useful options | |
PerlMonks |
Re: Regex pattern to find directories only with digitsby graff (Chancellor) |
on Apr 12, 2013 at 03:03 UTC ( #1028263=note: print w/replies, xml ) | Need Help?? |
If I were trying to get just the entries in my current working directory whose names consist entirely of digits, I'd do it like this:
If the entries of interest were in fact all "yyyymmdd" digit strings, I'd replace the "+" in the grep regex with {8}.
In Section
Seekers of Perl Wisdom
|
|