Moving text from middle of filename, to suffix

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Moving text from middle of filename, to suffix

Postby BRUfan » Wed Jan 16, 2013 5:01 pm

Hi
Thanks for this super utility! I've used it many times and have recommended it to others. It's a real timesaver and never crashes.

Question: I took vacation photos and put the date in after the location, followed by a short title.
ex. Cape.Cod.07.04.12.At.the.Beach.jpg
Now I want to move the date to the end of the name, i.e. Cape.Cod.At.the.Beach.07.04.12.jpg

The problem: I tried using the Copy/Move box but do not see an option to select text in the middle of the file name. Also, since the photos have different length titles (i.e. "at.the.beach", "fireworks", "cookout") the dates need to be inserted as a suffix, i.e. right before the .jpg.

The date text is in the same place/same length in all the filenames, by the way.

Any help you can provide is appreciated.
BRUfan
 
Posts: 2
Joined: Wed Jan 16, 2013 4:15 pm

Re: Moving text from middle of filename, to suffix

Postby Stefan » Sun Jan 20, 2013 1:30 pm

FROM:
Cape.Cod.07.04.12.At.the.Beach.jpg

TO:
Cape.Cod.At.the.Beach.07.04.12.jpg

TRY:

RegEx
Find: (.+)(\.\d\d\.\d\d\.\d\d)(.+)
Replace: \1\3\2


Explanation:
(.+) = matching group 1 => Cape.Cod
(\.\d\d\.\d\d\.\d\d) = group 2 => .07.04.12
(.+) = 3 => .At.the.Beach

Then replace with what is matched in group \1, then group \3, and then \2
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: Moving text from middle of filename, to suffix

Postby BRUfan » Sun Jan 20, 2013 8:59 pm

Thanks for the quick reply!
I had not used the RegEx syntax before, as I had no need, but now i see what it's all about. :)
BRUfan
 
Posts: 2
Joined: Wed Jan 16, 2013 4:15 pm


Return to BRU Support