in reply to How to capture quantified repeats?
prints:my $ham = "spam\tspam\tspam\t\tyam\tclam"; my @jam = ($ham =~ (m/^[^\t]+\t[^\t]+\t([^\t]+)(\t\t)([^\t]+)\t[^\t]+$ +/)); print join("\n", '**', @jam, '**', '');
** spam yam **
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |