<!-- Example File From "JavaScript and DHTML Cookbook" Published by O'Reilly & Associates Copyright 2003 Danny Goodman --> var amounts = "30.25,120.00,45.09,200.10"; var amtArray = amounts.split(/\.\d{2},?/);