From: Roger Pack Date: 2009-12-01T05:32:12+09:00 Subject: regexing a file's contents without reading the whole thing? I see that it is possible currently to parse through a file without reading the whole thing into RAM, a la a = File.open('a', 'r') a.lines{|line| if line =~ /some regex/ ... end } But what if I can to do something like a = File.read('a').scan /some regex/ is that possible? Thanks. -r -- Posted via http://www.ruby-forum.com/.