by Luuk » Tue Mar 12, 2024 4:40 am
IF your jpegs are like the sample, and they have the correct dates in their metadata, this can be an example...
First RegEx(1) needs a checkmark inside for "Inc.Ext.", so then a "Match" and "Replace" like...
^20\d\d_\d\d_\d\d_(?i)(IMG_\d+)\.jpe?g$
\1
Add(7) with Prefix==<($exif:DateTimeOriginal)>
AutoDate(8) with Mode==None, Fmt==Custom, Custom==%Y_%m_%d---
Could also use Extensions(11) to make the extensions lower-case.
The RegEx(1) removes any leading YYYY_mm_dd_ in front of names ending like your description "IMG_digits".
But if either your now-names or date-formats are not like the description, then the dates will not be removed!
If they dont have dates it wont matter, but if your now-names can be different, must give more than 1-example.
After RegEx(1) removes any leading-date, Add(7) prefixes the date found inside of DateTimeOriginal.
Note: The $ inside of <($exif:DateTimeOriginal)> tells Add(7) to use AutoDate(8)'s date-format.
So really AutoDate(8) is just holding the custom date-string for Add(7).