Wiggins has asked for the wisdom of the Perl Monks concerning the following question:
Some times things are so obvious that they are not documented. But who can tell?
I am looking for a file in a directory using the 'glob' <>. within that glob is a non-simple RE.
This throws no errors, but never returns anything either. I am looking for something like:my @possible = <${pathHi}(.*[_-]?RTM[_-]).*[.]xlsx>; #perl glob
RTM.xlsx RTM-v3.3_.xlsx system_2_RTM_v3-4.xlsx system 3-RTM.xlsx #yes, embeded spaces in file names
As I searched, the only example was '*', and no description of what could be used, or what internals would be doing the processing.
Pointers to some docs?It is always better to have seen your target for yourself, rather than depend upon someone else's description.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using regex in file glob ?
by Lotus1 (Vicar) on May 03, 2021 at 13:50 UTC | |
|
Re: Using regex in file glob ?
by Fletch (Bishop) on May 03, 2021 at 17:36 UTC | |
|
Re: Using regex in file glob ?
by tybalt89 (Monsignor) on May 03, 2021 at 20:26 UTC | |
|
Re: Using regex in file glob ?
by LanX (Saint) on May 03, 2021 at 13:52 UTC | |
|