my @values = $line =~ m{(\d+(?:\.\d*)?)(?=\s*,|\z)}g; [download]
seems to do the right thing.
I hope this is of use.
Cheers,
JohnGG
In reply to Re: Regex problem by johngg in thread Regex problem by Win