use strict; use warnings; while () { print "$_"; if ($_ =~ /\d{7}Test Hello 1234567