my @array; while ( defined ( $_ = ) ) { push @array, /\t*((?:[^\t]+\t+){3}(?:[^\t]+))/g; }