From: Sebastian Hungerecker Date: 2008-10-25T11:52:22+09:00 Subject: Re: help with regular expressions Vandana wrote: > While reading from the file, Im interested only in reading those lines > that have the forward-slash' in > them (lines 9,10,12, 13). How can I do this in ruby? file.grep %r(/) or file.grep /\// HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826