conditional date adding

Hi, I have files with the format like "5f5f1e5b-037a-42e1-afb0-4e6c7e9c4ffc.jpg". They have all 4 x "-". I would like to add date data (modified year, month, day, hour, minute, second) only to the files that contain "-" 4 times. How can I do it? Thanks for your support!
Reply to #1:
Hi Jani,
You can use a regular expression to filter the file names that contain 4 hyphens.

For example, if you want to completely replace the name, use the following settings in the Replace method:

Replace: ^(?:[^-]*-){4}[^-]*$
Replace with: <ExifTool:FileModifyDate> or your preferred tag

Make sure Use regular expression is checked
Apply to Name

This will only affect files that contain 4 hyphens.

If you prefer to add the date to the existing name instead of replacing it completely, use:

Replace: ^(?:[^-]*-){4}[^-]*$
Replace with: <ExifTool:FileModifyDate> <Name>
Regular expression checked and Apply to Name

Also there´s another method:
Use add method:
Add: <ExifTool:FileModifyDate>
Position: 1
Press the small {if} button and check Apply condition.
Field: Name
Match: Regular expression
Pattern: ^(?:[^-]*-){4}[^-]*$
Not matching option unchecked

I hope this will help you!