From: Martin DeMello Date: 2008-06-21T03:53:35+09:00 Subject: Re: File question On Fri, Jun 20, 2008 at 11:30 AM, Justin To wrote: > File name: some_random_report.2008-06-20.csv this should get you started folder_name = "/path/to/folder" reports = Dir["#{folder_name}/some_random_report*.csv"] Dir[] uses file globbing, not regexp matching. If you want the latter, try Dir["#{folder_name}/*.csv"].grep(/pattern/) martin