From: Vandana Date: 2008-10-28T05:29:36+09:00 Subject: Re: help with regular expressions Thanks to all! I used f.grep(/\//) to read the lines that were needed. Thanks once more. > From: Todd Benson [mailto:caduce...@gmail.com] > # I couldn't find it explicitly in the docks either, but if you do > # File.ancestors, you will see that Enumerable is in there. > > qri can find it > > botp@botp-desktop:~$ qri File#select > ------------------------------------------------------ Enumerable#select >      enum.find_all {| obj | block }  => array >      enum.select   {| obj | block }  => array > ------------------------------------------------------------------------ >      Returns an array containing all elements of enum for which block >      is not false (see also Enumerable#reject). > >         (1..10).find_all {|i|  i % 3 == 0 }   #=> [3, 6, 9]