I have a directory full of files like ‘filename1.png0’ that I would like to turn into ‘filename1.png’ as an example. The numbers in the actual filename can stay, but I want the number at the end of the filename to go.
I was using regular expressions in the Find and Replace dialog to try and accomplish this, but I haven’t been able to find a way to make my modification only from the extension. The regex I was using was this, among a few others I was experimenting with:
\d(?=\D*$)
regex101.com suggests that this should work to only select the final digit in the extension and NOT the filename itself, but it in krename I receive ‘filename.png’. It removes the final numbers from both the filename and extension, which isn’t what I need.
Is there an option I’m missing, is my expression incorrect, or is this currently not a feature of the program?
