(Assuming JS) Removing commas would be .replace(/,/g,
'') or .split(',').join()

 --- "Bruce, Rodney S HQISEC/Veridian IT Services"
<[EMAIL PROTECTED]> wrote: > Hi all
> 
> 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,"");
> 
> 
> but this doesn't seem to remove anything.
> 
> Help,  what am I missing?
> 
> TIA
> Rodney
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to