while(<>){ next unless /START/ .. /END/; print }