a="We bought 3.5 million shirts 15 dolalr.;"b=a.split(/\s+\d*\.?\d*\s*|([.,;])|[\s]+/)puts b
Standard input is empty
We bought million shirts dolalr . ;
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!