From: Shashank Date Date: 2003-06-24T12:23:05+09:00 Subject: Re: Operate on a range of lines in a file. "Jim Bob" wrote in message > *However*.... I'm pretty sure that, somewhere, sometime, I saw some much > more elegant way of doing this in ruby. I said "neat!", and promptly > forgot about it. Something involving ranges, maybe? Anybody have an idea > what I might have been thinking of, or am I misremembering? You mean like this example from ruby-talk [73674] ? while( line = gets ) if /BEGIN:VCARD/ =~ line .. /END:VCARD/ =~ line puts line end end