surib has asked for the wisdom of the Perl Monks concerning the following question:
Original pattern search was:3B40RT.2000033121.7.bin.gz 3B40RT.2000033121.7R.bin.gz (added 'R' to filename)
This worked fine until the 'R' was added for reprocessed files. I've tried:$fileName =~ /3B4[0|1|2]RT\.\d{10}\.\d+\.bin/)
Any suggestions?$fileName =~ /3B4[0|1|2]RT\.\d{10}\.\w+\.bin/ $fileName =~ /3B4[0|1|2]RT\.\d{10}\.\{1,}\.bin/ $fileName =~ /3B4[0|1|2]RT\.\d{10}\.\d+R?\.bin/ $fileName =~ /3B4[0|1|2]RT\.\d{10}\.\dR?\.bin/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Another Pattern Matching Question
by kcott (Archbishop) on Oct 12, 2012 at 16:51 UTC | |
by surib (Initiate) on Oct 12, 2012 at 17:25 UTC | |
by kcott (Archbishop) on Oct 12, 2012 at 19:27 UTC | |
by surib (Initiate) on Oct 12, 2012 at 17:43 UTC | |
by runrig (Abbot) on Oct 12, 2012 at 17:50 UTC | |
|
Re: Another Pattern Matching Question
by 2teez (Vicar) on Oct 12, 2012 at 18:25 UTC | |
|
Re: Another Pattern Matching Question
by Kenosis (Priest) on Oct 12, 2012 at 19:28 UTC | |
|
Re: Another Pattern Matching Question
by erix (Prior) on Oct 12, 2012 at 15:56 UTC | |
by surib (Initiate) on Oct 12, 2012 at 16:07 UTC | |
|
Re: Another Pattern Matching Question
by Anonymous Monk on Oct 12, 2012 at 20:22 UTC |