Try looking up the 'g' modifier for regular expressions. http://perldoc.perl.org/perlre.html
On Fri, Aug 1, 2008 at 10:28 AM, <[EMAIL PROTECTED]> wrote: > I'm trying to substitute all comma separated numbers in a text file > with the same numbers without commas. This expression will match the > numbers: \d{1,3}?(,\d\d\d)+ but how do i refer to each 3 digit block > after the commas so i can substitute for them? $1 here just returns > the last 3 digit number, but i need to substitute for all of them. > Any help is greatly appreciated. > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > >