Hi,
I need to reorder words in file names, but I can not understand how to do that. For example, I have file:
"Aillwee cave 2006.04.24 12-53-55.jpg"
I want to reorder words like this:
"2006.04.24 12-53-55 Aillwee cave.jpg"
How to do this with batch rename?
Thanks!
Reordering words in names - how?
-
- ALTAP Staff
- Posts: 5231
- Joined: 08 Dec 2005, 06:34
- Location: Novy Bor, Czech Republic
- Contact:
Show us more names you need to rename.
Is it always pattern "NAME1 NAME2 DATE TIME.jpg"
that you need rename to "DATE TIME NAME1 NAME2.jpg"?
With NAME1, NAME2, DATE, and TIME I mean stings that doesn't contain space character. So for example "Aillwee 2006.04.24 12-53-55.jpg" will not match this pattern because there isn't NAME2. Also "The Aillwee cave 2006.04.24 12-53-55.jpg" will not match it because there are three names: NAME1, NAME2, and NAME3.
Is it always pattern "NAME1 NAME2 DATE TIME.jpg"
that you need rename to "DATE TIME NAME1 NAME2.jpg"?
With NAME1, NAME2, DATE, and TIME I mean stings that doesn't contain space character. So for example "Aillwee 2006.04.24 12-53-55.jpg" will not match this pattern because there isn't NAME2. Also "The Aillwee cave 2006.04.24 12-53-55.jpg" will not match it because there are three names: NAME1, NAME2, and NAME3.
Last edited by Jan Rysavy on 19 Feb 2008, 11:50, edited 2 times in total.
-
- ALTAP Staff
- Posts: 5231
- Joined: 08 Dec 2005, 06:34
- Location: Novy Bor, Czech Republic
- Contact:
-
- ALTAP Staff
- Posts: 5231
- Joined: 08 Dec 2005, 06:34
- Location: Novy Bor, Czech Republic
- Contact:
Try this (my lame approach, but should be clear).
Search for: (.*) (\d\d\d\d.\d\d.\d\d) (\d\d-\d\d-\d\d)
Replace with: $2 $3 $1
[X] Regular expression
Note: the () capture subexpression for further use with $1, $2, etc.
The \d stands for digit character.
Search for: (.*) (\d\d\d\d.\d\d.\d\d) (\d\d-\d\d-\d\d)
Replace with: $2 $3 $1
[X] Regular expression
Note: the () capture subexpression for further use with $1, $2, etc.
The \d stands for digit character.
- Attachments
-
- Batch Renamer
- batchrenamer.gif (26.26 KiB) Viewed 8797 times