Select the following files to rename by inserting the letter "w".
A.txt
B.txt
Old Mask: (.*).txt New Mask: $1w.txt
The renamed files now contain the letter "w"
Aw.txt
Bw.txt
However, if instead of inserting the letter w, we want to insert a number (2015), the rename does not work.
New Mask: $12015.txt
We want the renamed files to be A2015.txt and B2015.txt. However, A.txt is renamed to $12015.txt and the other file is skipped.
Regular Expressions probably does not know if we are dealing with variable $1 or $12 or $120, etc. I searched online, but could not find a solution.
Does anyone have the answer?
A.txt
B.txt
Old Mask: (.*).txt New Mask: $1w.txt
The renamed files now contain the letter "w"
Aw.txt
Bw.txt
However, if instead of inserting the letter w, we want to insert a number (2015), the rename does not work.
New Mask: $12015.txt
We want the renamed files to be A2015.txt and B2015.txt. However, A.txt is renamed to $12015.txt and the other file is skipped.
Regular Expressions probably does not know if we are dealing with variable $1 or $12 or $120, etc. I searched online, but could not find a solution.
Does anyone have the answer?
Comment