in reply to Re^2: using regex with records
in thread using regex with records

.* does not match \n by default. You need to use //s. Read perlre.