Regex for comma substitution

2001-12-21 Thread Dirk Bremer
I am looking for a regex to be used for comma substitution for numbers, i.e. the regex would transform: 999 = 999 = 9,999 9 = 99,999 99 = 999,999 999 = 9,999,999, etc. I tried s/(\d{3})/,$1/g, but for certain numbers it leaves a leading comma, i.e. 99

RE: Regex for comma substitution

2001-12-21 Thread Wagner-David
]] Sent: Friday, December 21, 2001 13:18 To: perl-win32-users Subject: Regex for comma substitution I am looking for a regex to be used for comma substitution for numbers, i.e. the regex would transform: 999 = 999 = 9,999 9 = 99,999 99 = 999,999 999 = 9,999,999

Re: Regex for comma substitution

2001-12-21 Thread $Bill Luebkert
Dirk Bremer wrote: I am looking for a regex to be used for comma substitution for numbers, i.e. the regex would transform: 999 = 999 = 9,999 9 = 99,999 99 = 999,999 999 = 9,999,999, etc. I tried s/(\d{3})/,$1/g, but for certain numbers it leaves a

Re: Regex for comma substitution

2001-12-21 Thread John Deurbrouck
Dirk Bremer wrote: I am looking for a regex to be used for comma substitution for numbers, i.e. the regex would transform: 999 = 999 = 9,999 9 = 99,999 99 = 999,999 999 = 9,999,999, etc. I tried s/(\d{3})/,$1/g, but for certain numbers it