Identify the number and replace it by counter

Suggestions and feature requests.
Post Reply
Message
Author
User avatar
Dreamer
Site Admin
Posts: 4055
Joined: 19.08.2007, 21:40

Identify the number and replace it by counter

#1 Post by Dreamer » 05.10.2019, 15:46

Inspired by this topic and also because I needed to do this few times already, I suggest to add this feature, it would be useful to renames files like "file1", "file2"..."file 9", file 10", "file 11" to "file01"..."file 11":

Identify the number and replace it by counter [c] .

For example, the files with the names like this:

File1
File2
File3
...
File10
File11
File12

To this form (just add zero, so the number of digits will be the same in all files):

File01
File02
File03
...
File10
File11
File12

Image viewer XnView can do this - just remove numbers and replace them by any number of digits (using ## for 2 or ### for 3 digits), but it can't sort using "Natural sorting", so it's not possible to do it there either.

I tried to achieve it now using "1|2|3|4|5|6|7|8|9|0" in "Search for" and [n][c], but it doesn't work good.

Forez
Posts: 464
Joined: 30.01.2016, 11:05
Location: In front of a PC monitor

Re: Identify the number and replace it by counter

#2 Post by Forez » 30.10.2019, 12:03

I see that it could be useful


But the user would have to point out which number is to be turned into a Counter, as the file might have more than one; e.g.

File 10 version 3
Collection 3 subset 432 - description of content

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests