From: Bill Kelly Date: 2009-05-07T21:04:55+09:00 Subject: Re: grep a block of code From: "Maciej Pindela" > > > 2 > 3 > 4 > 5 > > > How to use grep to give me all form file wich start with and end > with > > I've tried that way.. > > puts File.readlines(ARGV[0]).grep(/ * <\/tag>/) puts ARGF.read.scan(/.*?<\/tag>/m) Regards, Bill