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

Wow, that worked! Thanks!!!