/ Published in: ActionScript 3
Adds commas every 3 spaces.
Expand |
Embed | Plain Text
String (1000000).replace(/(\d)(?=(\d\d\d)+$)/g, "$1,");
Comments
Subscribe to comments
You need to login to post a comment.
Adds commas every 3 spaces.
String (1000000).replace(/(\d)(?=(\d\d\d)+$)/g, "$1,");
Subscribe to comments
You need to login to post a comment.
I looked for almost an hour for this! All that I could find were long functions that didn't work, this worked immediately, thanks!