Copy year from filename/title to %year% field

How do set up an action that searches for the occurrence of a four digit year (19xx) occurring anywhere within the string of either the filename or title and then copy it into the %year% field?

try an action of the type "Format value" for %year%
Format string: $regexp(%_filename%%title%,.*(\d\d\d\d).*,$1)
If that does not work, you have to be more specific

1 Like

Wow, that worked! Thanks!!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.