Something like:
my $ham = "spam\tspam\tspam\t\tyam\tclam"; my @jam; $ham =~ s/^[^\t]*\t[^\t]*((?:\t[^\t]*){3})\t[^\t]*$/push @jam,(split " +\t",$1);$1/eg; print join("\n", '**', @jam, '**', '');
maybe?
In reply to Re^2: How to capture quantified repeats?
by DonJaime
in thread How to capture quantified repeats?
by whatever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |