From: Dave Thomas Date: 2000-11-19T03:22:56+09:00 Subject: [ruby-talk:6443] Re: variable in regular expression David Alan Black writes: > old, new = ARGV[1..2] # or 0..1, as the case may be > > Dir["*"].each {|s| In fact you could increase efficiency more by only returning those files that match: #*untested* Dir["*#{old}*"].each ... Dave