Changing Date Formatting

A swapping-ground for Regular Expression syntax

Changing Date Formatting

Postby Tchoppr » Fri Jan 08, 2021 1:38 am

I have various files and folders with the "YYYYMMDD_HHMMSS" date/time format. I would like to change them to the "YYYY-MM-DD HH.MM.SS" format instead. Some of them have words after the date/time that I would like to keep. How is this done with RegEx (1) in BRU? I know I can do something similar with Auto Date (8) but it changes the characters in the time portion of the filename. Any help would be greatly appreciated.
Tchoppr
 
Posts: 3
Joined: Fri Jan 08, 2021 1:31 am

Re: Changing Date Formatting

Postby Admin » Fri Jan 08, 2021 4:42 am

Hi, can you post some examples of names from -> to?
thanks
Admin
Site Admin
 
Posts: 2059
Joined: Tue Mar 08, 2005 8:39 pm

Re: Changing Date Formatting

Postby Tchoppr » Fri Jan 08, 2021 7:26 am

Admin wrote:Hi, can you post some examples of names from -> to?
thanks

20170220_131717.jpg -> 2017-02-20 13.17.17.jpg
20170224_144148_Vacation002.jpg -> 2017-02-24 14.4.148_Vacation002.jpg

Please ignore the first post. I couldn't edit it.
Tchoppr
 
Posts: 3
Joined: Fri Jan 08, 2021 1:31 am

Re: Changing Date Formatting

Postby Admin » Fri Jan 08, 2021 7:55 am

Is it always nothing or a _ after the date?
Admin
Site Admin
 
Posts: 2059
Joined: Tue Mar 08, 2005 8:39 pm

Re: Changing Date Formatting

Postby Tchoppr » Fri Jan 08, 2021 8:21 pm

It's always a _ and I'd like it to be a space.
Tchoppr
 
Posts: 3
Joined: Fri Jan 08, 2021 1:31 am

Re: Changing Date Formatting

Postby Luuk » Sat Jan 09, 2021 4:49 pm

Greeting Tchopper. The understanding is still not certain, should there be space in front of "Vacation" or instead "_Vacation" ?
Luuk
 
Posts: 320
Joined: Fri Feb 21, 2020 10:58 pm


Return to Regular Expressions


cron