Re: regex question matching dates

[email protected] (Richard Lee)
Newsgroups perl.beginners
Message-ID <[email protected]>
John W. Krahn wrote:
>>
>>
>> } elsif ( $ARGV[0] =~ 
>> m/\b2008(0[1-9]|1[12])(0[1-9]|1[0-9]|2[0-9]|3[01])([01][0-9]|2[0-3])\b/ 
>> ) {
>                   ^^^^^
> So you don't want to test for October?
>
>
>
> John
fixed now. thanks!!

} elsif ( $ARGV[0] =~ 
m/\b2008(0[1-9]|1[012])(0[1-9]|1[0-9]|2[0-9]|3[01])([01][0-9]|2[0-3])\b/ ) {
      @array = qx#ls -tr $directory/$ARGV[0]*#;
      $hour = substr($ARGV[0], 8 , 2);
      $date_1 = substr($ARGV[0], 4 , 4);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.