@nums = $dotted_num_string =~ /(?:(\d+)\.?)/g;
but allows a final trailing dot.
I think your idea of using split, with suitable tests, is probably the best generic solution, barring any further constraints.
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^3: Regex for matching dotted numbers
by QM
in thread Regex for matching dotted numbers
by techman2006
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |