Break values Ruby 1.9 match = while line = gets next if line =~ /^#/ break line if line.find(‘ruby’) end