regular expression to insert space beetween thousands and hundreds...

Posted by pixelboy on Stack Overflow See other posts from Stack Overflow or by pixelboy
Published on 2010-04-25T09:05:45Z Indexed on 2010/04/25 9:13 UTC
Read the original article Hit count: 292

Regular expressions and I aren't quite good friends. So here's the really basic operation i'm trying to do using javascript (jQuery framwork that is).

My calculation function return a number, unformated, and i'd like to separate thousands and hundreds by a white space ' '.

I'm sure it's pretty easy for a regexp regular user... but for me...

Thanks for the help.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regular-expression