lines.readlines("somefile").each do |line| puts line if (/start/../end/) === line end
myFile.each do |line| ... = line.chomp.split(/regexp/) ... end