in reply to Re: Regex problem
in thread Regex problem

The m//g operator, and the split() function, are opposite sides of the same coin. If it's easier to describe the things you want to keep, use a match. If it's easier to describe the things you want to discard, use a split.
m{(\d+(?:\.\d*)?)(?=\s*,|\z)}g
split /,/
Which seems easier to write, read, and maintain?

--
[ e d @ h a l l e y . c c ]