Here's another option:
my @test_filtered = map { (/(\d+)[\d.]*/g)[-1] // '' } @test;
Update: changed to // to handle 0s. Thanks again, AnomalousMonk.
In reply to Re: Array Filter and Lookahead
by Kenosis
in thread Array Filter and Lookahead
by daugh016
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |