my @test_filtered = map { (/(\d+)[\d.]*/g)[-1] // '' } @test;