s/\.0+(\d+)/\.\1/; The above substitution works.
Ashok On 11/13/07, danlamb <[EMAIL PROTECTED]> wrote: > > Hey guys, > > I need a regex to remove zeros after the . in a file name if they are > followed by another digit. > > Example: XXXXXX.001 becomes XXXXXX.1 > > Any ideas? I've been banging my head on my desk for an hour over > this. > > Thanks, > Dan Lamb > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > >