From "Mastering Regular Expressions 2nd Edn" p.65
s/(?<=\d)(?=(\d\d\d)+$)/,/g
I like this because you are actually using the regex to determine the location to insert the comma, as opposed to replacing any of the original string. HTH
In reply to Re: Re: Making money look nice
by Anonymous Monk
in thread Making money look nice
by CodeJunkie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |