Suggestion: add regex to Timestamp->Pattern

Advanced Renamer forum
#1 : 24/02-17 07:25
arwul
arwul
Posts: 94
Suggestion to allow regex as a new pattern to change date time stamp.

Example:
Say I have files like:
File1 - 01-01-2013 31-12-2013.tst
File2 01012012 31122002.tst
File3-31122001.tst
File4 - 31-12-2000.tst
File5 31121999.tst

using a regular expression like:
(.+)([\s-]?)(\d{2})[\s-]?(\d{2})[\s-]?(\d{4})\.(\w{3,4})
matching the date before the extension would then update for example the modified date.

Am not aware of any file renames capable of doing this.

=


24/02-17 07:25
#2 : 24/02-17 23:01
G. Lambany
G. Lambany
Posts: 187
Reply to #1:
hi,
using the modified date for anything else than knowing when it was last modified, is in most cases a bad idea.

I would suggest finding another way to get the information you are looking for. Create date is a lesser evil, but at the end of the day, metadata is the safest and most reliable way to know when a picture was taken for example.

You would need to give a little more information on your specific files type and rename task.

In the most extreme cases where there isn't any other options, the dates could be kept intact after a rename, but I don't know any software that does that. A custom python script could be built to do that, I've already experimented with dates and regex renames, but I don't offer them anymore.

Maybe mr. Jensen could add it to AR, I dunno.

cheers


24/02-17 23:01