How to auto render dates to year only?

I had some great help creating a great action to remove all ‘feat/featuring’ etc text from tags and filenames a while back here.
My final boss issue (for now) is an action to change release date fields like this: 2026\42026-01-16 to become simply the year, 2026.

I’ve tried re-engineering the ‘featuring’ answer but I’m lost. What follows the year is sometimes // or commas etc. I just need a way to keep the first 4 digits of whatever’s in the field.

Thank you!

See e.g. here:

Perfect pointer, thanks, got it done!
I still had a niggling 2026-01-31 but used:

Field: %year%

  1. Find: ^(\d{4})-\d{2}-\d{2}$
  2. Replace: $1

and all clean!

You could also try "Format value" or Convert>Tag-Tag for YEAR
Format string: $num(%year%,1)