Bruce, Rodney S HQISEC/Veridian IT Services wrote: > > I am trying to remove commas from numbers being inputted by user like 3,333 > changed to 3333. > > This works: > tempstring = tempstring.replace(/[^0-9]/g,""); > > but it removes periods 3.33, which I want to keep. > so I tried: > tempstring = tempstring.replace(/^\.[^0-9]/g,"");
tempstring = tempstring.replace(/[^0-9\.]/g,""); Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

