danlamb wrote:
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
s/\.0+(?=[1-9])/./; -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/