Range pattern match
while line = gets puts line if line =~ /start/ .. line =~ /end/ end while gets print if /start/../end/ end