I often work on a group of files that have a sequential number in them for ordering purpose, but sometimes I want to insert a file. I can easily identify the number, but how can I renumber it?
Example:
Code: Select all
Old File New File
Log02Apr06.txt Log03Apr06.txt
Log03Apr06.txt Log04Apr06.txt
Log04Apr06.txt Log06Apr06.txtregex = ^(Log)(\d\d)(Apr06\.txt)
$2 will contain what I want to transform, but can it be done?