Aug 15, 2011, 5:41 PM
Post #1 of 4
Hello guys I am stuck...
Help me with this regular expression!
I have files named:
The date is usually yesterday's date, so I have that in a variable called $yesterday. The country is the $COUNTRY variable.
Here is my pattern match which only partially works.
$file =~ /^PRODUCTION[$COUNTRY].MAIN+.*[$yesterday]$/
Assuming $yesterday = 110814 and $COUNTRY = SPAIN
That matches: 1 and 5
I need something that matches 1,2,5 and 6.