Page 1 of 1

Rearrange wrong order of date in files

PostPosted: Fri May 16, 2008 10:01 pm
by Fossil
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?

Re: Rearrange wrong order of date in files

PostPosted: Sat May 17, 2008 6:36 am
by Admin
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