in reply to Re: Making money look nice
in thread Making money look nice
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
|
|---|