while () { if (/$start/.../$end/) { print; } }