flieckster has asked for the wisdom of the Perl Monks concerning the following question:
the code above results in returning the full filename.chdir( $wetrasnfer) or mail ($to = $internaldl, $from = $internaldl, $ +subject= "wetransfer $! $0", $body ="ERROR $wetrasnfer $! $0" ); (@wetransfer) = glob '*.tif'; @wetrasnfer_fix = grep /([0-9])*_([0-9]*)/, @wetransfer; print join("\n", @wetrasnfer_fix), "\n";
ideally i'd want above returned with the .tif missing.00204597_957.tif 00271558_148.tif 00271558_585.tif
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: apply a regular expression to glob'd filenames
by choroba (Cardinal) on Oct 01, 2019 at 20:26 UTC | |
by flieckster (Scribe) on Oct 02, 2019 at 14:31 UTC | |
|
Re: apply a regular expression to glob'd filenames
by Fletch (Bishop) on Oct 01, 2019 at 20:28 UTC | |
|
Re: apply a regular expression to glob'd filenames
by 1nickt (Canon) on Oct 01, 2019 at 20:58 UTC | |
|
Re: apply a regular expression to glob'd filenames
by hippo (Archbishop) on Oct 01, 2019 at 21:06 UTC |