From: Alexander Lamb Date: 2006-07-25T14:51:42+09:00 Subject: Finding files in a directory and regexp --Apple-Mail-9--594134800 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Hello, I am doing something like this: Find.find("/Users/alamb/_Current-Work/fiches") do |path| if(path =3D~ /100_/) ... In order to get all the files of the directory which have "100_" in =20 the name. Two questions: 1) Is there a way to use the find method to directly achieve this? 2) I tried a Regexp with /^100_/ to say "files starting with '100_' =20 " but it doensn't seem to work. Any idea? Thanks -- Alexander Lamb Service d'Informatique M=E9dicale H=F4pitaux Universitaires de Gen=E8ve Alexander.J.Lamb@sim.hcuge.ch +41 22 372 88 62 +41 79 420 79 73 --Apple-Mail-9--594134800--