in reply to Re^4: Combined lines from a file into onein thread Combined lines from a file into one
my $type = 'IMB'; my $version = 'V1'; s/^($type,\d+,$version\s+,)(\d+),\K (?:.*\n)+ \1\d+,(\d+).*/$3/gmx; [download]