Hy,
I want to use Multiple rename tool to rename pictures from say image-1.jpg .. image-17.jpg to image-01.jpg .. image-17.jpg for natural sequencing in TC or image viewer. Does anyone know what regular expression to use (or any other method)? For instance I've tryed to use Search for: (\d{2}) and Replace with: 0$1 for prefixing groups of 2 digits with one 0 but the 3 digit groups are modified too. Any suggestions?
10x. Mihai
Regular expressions - picture names
Moderators: Hacker, petermad, Stefan2, white
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
You can actually work it out in the current situation without regular expressions. Just select only the files with the one-digit names then fill in the search field "-" and replace with "-0". (without of course the double-quotes)
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Christian Ghisler Rules!!!
Someone may come across the case where after filename there are numbers without any separator. Then replace (with RegEx):
(\d{1,})\. into -$1\. to add "-" before digits
And then use
-(\d{1})\. into -0$1\. to rename one digit into two digits
or -(\d{2})\. into -0$1\. to rename two digit number into three
(\d{1,})\. into -$1\. to add "-" before digits
And then use
-(\d{1})\. into -0$1\. to rename one digit into two digits
or -(\d{2})\. into -0$1\. to rename two digit number into three
