surib has asked for the wisdom of the Perl Monks concerning the following question:
My pattern search needs to match both files:
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/
Back to
Seekers of Perl Wisdom