$start=" "; $end=""; while (<>) { if (/$start(.*?)$end/g) { print "\n\n\nDOODAH:".$1."\n"; } }