#!/usr/local/bin/perl #use strict; use warnings; #use re debug; while () { # This section works OK. # if (/(?<=TAG1)(.*)(?=TAG2).*?/x) { # print $1, "\n"; # } if (/^(?