From: Martin DeMello Date: 2003-01-30T22:21:50+09:00 Subject: reading past a file header Looking for a more idiomatic way to do this: flag = false IO.foreach(file) {|line| flag = true if line =~ /^--begin--$/ next unless flag ... } I vaguely remember something about using a range of regexps to do this without the flag variable, but I can't find the exact method. martin