in reply to (jeffa) Re: Expand Ranges in Lists of Numbersin thread Expand Ranges in Lists of Numbers
$str =~ s/\s//g; [download]
$str =~ s/[^\d-,]//g; [download]
As they say, TMTOWTDI.