On Wed, May 14, 2008 at 9:46 AM, Clement Ow
<clement.ow / asia.bnpparibas.com> wrote:
> Also, I have problems making some file exceptions. For example, i ahve
>  some files that start with 2007 which goes something like, 20070131 and
>  a file which is called "Risk 20070131" but when i put 2007 in the
>  file_exception variable, it deselects any file that has 2007 in the
>  filename, which not what i want. I know that the regexp doesnt allow any
>  like 2007* to be put in the file_exception to deselect any file which
>  starts with 2007. Any ideas at all, anyone?

I'm not sure if I'm understanding you correctly, but you can tweak the
regexps so that they actually match what you want. If you want
to deselect only the files that start with 2007 you can do this:

irb(main):001:0> a = %w{20071212 20073445 risk20072341}
=> ["20071212", "20073445", "risk20072341"]
irb(main):003:0> a.reject {|x| x =~ /\A2007/}
=> ["risk20072341"]

Jesus.