Return to Snippet

Revision: 50474
at August 24, 2011 05:41 by pokypine


Initial Code
var scoreString:String = String(score);
var regex:RegExp = /(\d)(?=(\d\d\d)+$)/;
scoreString = scoreString.replace(regex, "$1,");

Initial URL

                                

Initial Description

                                

Initial Title
Add Commas to Number

Initial Tags

                                

Initial Language
ActionScript 3