This regexp will add commas to numbers:s/(^[-+]?\d+?(?=(?>(?:\d{3})+)(?!\d))|\G\d{3}(?=\d))/$1,/g;
Originally posted as a Categorized Answer.
In reply to Re: How do I add commas to a number?
by spadacciniweb
in thread How do I add commas to a number?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |