May be an easy one but need photos renamed
I have this:
1 (1).jpg, 1 (2).jpg, 1 (3).jpg
2 (1).jpg, 2 (2).jpg
3 (1).jpg, 3 (2).jpg, 3 (3).jpg, 3 (4).jpg
I need this:
1-1.jpg, 1-2.jpg, 1-3.jpg
2-1.jpg, 2-2.jpg
3-1.jpg, 3-2.jpg, 3-3.jpg, 3-4.jpg
I can use the basic rules to remove the brackets and add a number, but I cannot figure out how to reset the added number for each photo number group, so I end up with this:
1-1, 1-2, 1-3, 2-4, 2-5, 3-6, 3-7, 3-8, 3-9, etc
Can someone help?
1 (1).jpg, 1 (2).jpg, 1 (3).jpg
2 (1).jpg, 2 (2).jpg
3 (1).jpg, 3 (2).jpg, 3 (3).jpg, 3 (4).jpg
I need this:
1-1.jpg, 1-2.jpg, 1-3.jpg
2-1.jpg, 2-2.jpg
3-1.jpg, 3-2.jpg, 3-3.jpg, 3-4.jpg
I can use the basic rules to remove the brackets and add a number, but I cannot figure out how to reset the added number for each photo number group, so I end up with this:
1-1, 1-2, 1-3, 2-4, 2-5, 3-6, 3-7, 3-8, 3-9, etc
Can someone help?
Reply to #1:
Hi Steve,
If I understand, this should do the trick:
Replace method:
Replace: (\d+) \((\d+)\)
Replace with: $1-$2
Occurrence: All
Use regular expressions: Checked
Apply to: Name
That says to capture digit(s) at the start of the filename in group 1, capture digit(s) between parentheses in group 2, and replace the original with group 1 ("$1") plus a dash plus group 2 ("$2).
That way you are not "adding" a number, just using the numbers already there.
Let us know if that's what you need.
Hi Steve,
If I understand, this should do the trick:
Replace method:
Replace: (\d+) \((\d+)\)
Replace with: $1-$2
Occurrence: All
Use regular expressions: Checked
Apply to: Name
That says to capture digit(s) at the start of the filename in group 1, capture digit(s) between parentheses in group 2, and replace the original with group 1 ("$1") plus a dash plus group 2 ("$2).
That way you are not "adding" a number, just using the numbers already there.
Let us know if that's what you need.