Rearrange wrong order of date in files

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

Rearrange wrong order of date in files

Postby Fossil » Fri May 16, 2008 10:01 pm

Hi, I am a new user. I have a lot of files with a wrong order of date in the filename (I am from Germany). How can I rearrange it?
The exsting oder of date is dd.mm.YYYY and it should be rearranged to YYYY.mm.dd.
Example: 25.12.2007 and some text.ext -> 2007.12.25 and some text.ext
Is this possible with BRU and how?
Fossil
 
Posts: 1
Joined: Fri May 16, 2008 9:35 pm

Re: Rearrange wrong order of date in files

Postby Admin » Sat May 17, 2008 6:36 am

Hi,

There's already a good Regular Expression example in the forum. Something like this will work:

Match: (.*)(\d\d).(\d\d).(\d\d\d\d)(.*)
Replace: \1\4.\3.\2\5



Jim
Admin
Site Admin
 
Posts: 2350
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support